Last post Oct 14, 2015 10:26 PM by Angie xu - MSFT
Oct 13, 2015 11:29 AM|SheldonS|LINK
I have encountered an odd problem. When I run all tests in Visual Studio 2015 a lot of them fail with a message like this;
"Mixed mode assembly is built against version 'v2.0.50727' of the runtime
and cannot be loaded in the 4.0 runtime without additional configuration
When I run the tests in Visual Studio 2013 I do not get those errors. In my test project's app.config I already have this set in the configuarion node.
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.5"/>
Any suggestions on how I can run my tests so I can switch to 2015 completely?
Oct 14, 2015 10:26 PM|Angie xu - MSFT|LINK
"Mixed mode assembly is built against version 'v2.0.50727' of the runtime and cannot be loaded in the 4.0 runtime without additional configuration
To configure an App to Support .NET Framework 4 or 4.5, 2.Add the <supportedRuntime> element as follows to the application configuration file:
.NET Framework 4 and 4.5 (including point releases such as 4.5.1): "v4.0"
.NET Framework 2.0, 3.0, and 3.5: "v2.0.50727"
Hope it helps.