Side-By-Side Assemblies

I l @ ve RuBoard

To demonstrate side-by-side versioning support of .NET assemblies, reopen the SharedComponent project and make the following changes:

  1. Update the version attribute in AssemblyInfo.cs to 1.1.

  2. Change the returned string from the WhoAmI method to reflect the new version information.

  3. Build the new assembly.

  4. Install the new version of the assembly into the GAC directory.

After these steps are complete, two versions of the SharedComponent.dll should be visible in the GAC, as shown in Figure 5.2.4.

Figure 5.2.4. Side-by-side versioning of SharedComponent.dll .

graphics/0502fig04.gif

Rerun the client application and notice that the returned message is still "Hello from version 1.0." . It is important NOT to recompile the client application because the reference will now be to the newer version of the DLL.

I l @ ve RuBoard


C# and the .NET Framework. The C++ Perspective
C# and the .NET Framework
ISBN: 067232153X
EAN: 2147483647
Year: 2001
Pages: 204

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net