Compile errors for assemblies which reference to mscorlib 2.0.5.0 (LINQPad 5.00.08)
Example: Adding a NuGet reference to Autofac, and running the code new ContainerBuilder().RegisterInstance(""); gives "CS0012 The type 'Object' is defined in an assembly that is not referenced. You must add a reference to assembly 'mscorlib, Version=2.0.5.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e, Retargetable=Yes'.".
Once, we had a similar problem with Roslyn (mscorlib 2.0.0.0 vs. 4.0.0.0 references). We solved this by using CSharpCompilationOptions.WithAssemblyIdentityComparer( DesktopAssemblyIdentityComparer.Default).
Once, we had a similar problem with Roslyn (mscorlib 2.0.0.0 vs. 4.0.0.0 references). We solved this by using CSharpCompilationOptions.WithAssemblyIdentityComparer( DesktopAssemblyIdentityComparer.Default).
Comments
I presume it won't break anything else!