2

Code first:

Assembly assembly = Assembly.Load("mscorlib, Version=2.0.0.0, Culture=neutral,  
                                   PublicKeyToken=b77a5c561934e089");
Console.WriteLine(assembly.FullName);

and the result is:

mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089

Why?

johnfound
  • 6,558
  • 3
  • 27
  • 55
Na Na
  • 808
  • 3
  • 13
  • 19
  • 2
    I suspect you can't since mscorlib is loaded during application initialization. Having multiple version of mscorlib in the same appdomain would be a weird situation. – Felice Pollano Oct 15 '13 at 10:07
  • You would need to set useLegacyV2RuntimeActivationPolicy to true if you want to load older assemblies. Here is something similar: http://stackoverflow.com/questions/7959843/how-can-i-load-an-older-version-of-a-net-assembly – danish Jan 13 '15 at 07:46

0 Answers0