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 ...

Get .NET Common Language Runtime Unleashed now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.