Quantcast
Channel: Visual Studio and Visual Web Developer Express
Viewing all articles
Browse latest Browse all 3509

Running Tests in VS2013 Premium and VS2015 Enterprise

$
0
0

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
information."

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.

<startup useLegacyV2RuntimeActivationPolicy="true"><supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.5"/></startup>

Any suggestions on how I can run my tests so I can switch to 2015 completely?


Viewing all articles
Browse latest Browse all 3509

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>