Friday, August 10, 2012 2:37 PM
Some of us in the Project have recently switched from VS2010 to VS2012 RC. Everything works fine, except running Tests locally - the tests on the TFS work fine as well.
The problem seems to be the loading of external legacy assemblies (SQLite):
System.IO.FileLoadException: System.IO.FileLoadException: 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..
In the application itself, we get around this issue with the following lines in the app.config
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.0"/>
But there is no app.config for mstest.exe I know of. These Problems do not exist in VS2010 or TFS2010/2012.
How to proceed?
Tuesday, August 14, 2012 2:16 AMModerator
As far as I know that you can't run multiple framework versions tests with mstest in a single run. I need to create a separate test for version v2.0 and then run it.
Vicky Song [MSFT]
MSDN Community Support | Feedback to us
- Marked As Answer by Vicky SongModerator Monday, August 20, 2012 4:01 AM
Wednesday, August 22, 2012 11:38 AM
It used to work with VS2010. What has changed?
Thanks for the answer and sorry for the late reply. I had trouble with the email notifications.
Friday, November 30, 2012 2:25 PM
Hi, just wanted to let u guys know that I had the exact same problem when I used MSTest. But, when i switched to nUnit the tests suddenly started to work and the exception went away