Free mag vol1 | Page 600

CHAPTER 14  BUILDING AND CONFIGURING CLASS LIBRARIES Figure 14-21. Referencing the strongly named, shared CarLibrary (version 1.0.0.0) using Visual Studio To illustrate, create a new C# Console Application named SharedCarLibClient and reference your CarLibrary.dll assembly as just described. As you would hope, you can now see an icon in your Solution Explorer’s Reference folder. If you select this icon and then view the Properties window (accessible from the Visual Studio View menu), you’ll notice that the Copy Local property of the selected CarLibrary is now set to False. In any case, author the following test code in your new client application: using using using using using System; System.Collections.Generic; System.Linq; System.Text; System.Threading.Tasks; using CarLibrary; namespace SharedCarLibClient { class Program { static void Main(string[] args) { Console.WriteLine("***** Shared Assembly Client *****"); SportsCar c = new SportsCar(); c.TurboBoost(); Console.ReadLine(); } } } 542