John Lam 1997 — 2026

Rotor rocks!

I just downloaded the SSCLI (Shared Source Common Language Infrastructure) distribution yesterday during a break in my Programming ASP.NET class at Microsoft SVC. Between that and finally getting a hold of Serge Lidin’s most excellent Inside Microsoft .NET IL Assembler book, I now have the means to solve a problem that has caused me no end of grief in Microsoft’s commercial implementation of the CLR.

I have always wanted a callable interface to Fusion. That’s the system DLL that handles all assembly resolution requests. Given an AssemblyRef token, Fusion will return back to the caller a path to the assembly that best matches that AssemblyRef token. It applies versioning policies (application, publisher, administrator), it attempts to download the assembly if it is referenced by a codebase attribute, it searches the Global Assembly Cache and the private application bin path using an algorithm that is nicely described on page zzz in Serge’s book.

Once I get a chance to take a closer look at the sources, I’ll be able to figure out whether I can:

  1. Hack my way into the CLR’s implementation (the preferrable route)
  2. Create my own private build of Fusion for use by my unmanaged metadata library

I’d like to commend Microsoft on their efforts in this area. While I have been fortunate enough to be able to look at the source code for various bits and pieces of COM in my past life, I have never had a fully functional *build* environment. I can now create debug builds of SSCLI and step through code in a debugger. This makes for the ultimate educational experience. Thank you!