O'Reilly logo

.NET Common Language Runtime Unleashed by Kevin Burton

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Locating Assemblies

To successfully deploy an application, you need to understand the process by which the CLR locates an assembly. By default, an application specifies an assembly with the same full name that was used when the application was built. You can see what assembly the application is looking for in the manifest of the application assembly. It might look like Listing 6.7.

Listing 6.7. External References to Dependent Assemblies
.assembly extern mscorlib
{
  .publickeytoken = (B7 7A 5C 56 19 34 E0 89 )
  .ver 1:0:3300:0
}
.assembly extern FooLib
{
  .publickeytoken = (BA 04 9F 56 C6 30 9B 78 )
  .ver 1:2:697:15012
}

Listing 6.7 shows that this application looks for two assemblies: version 1.0.3300 of mscorlib and version 1.2.697.15012 of ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required