Fix assembly resolution bug when running in MS.NET