VisualNunitRunner.exe needs .config file to run .net 20 code
Brought to you by:
tlaukkan
Our unit tests use SQLite that is compiled against .NET 2.0.
I get a mixed-mode IO exception if I run my tests in VisualNunit.
The work-around is to have a VisualNuitRunner.exe.config and VisualNunitRunner-x86.exe.config files in the vsix file that look like:
<?xml version="1.0"?>
<configuration>
<startup useLegacyV2RuntimeActivationPolicy="true">
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.0"/>
</startup>
</configuration>
View and moderate all "bugs Discussion" comments posted by this user
Mark all as spam, and block user from posting to "Bugs"
I am having the same issue (since one of the 3rd party dll we are using was built using v1.1). But i am not sure where and how to add the configuration files? i have installed Visual NUnit using nuget and it will install it in the following location \AppData\Local\Microsoft\VisualStudio\10.0\Extensions\Tommi Laukkanen %2F BubbleCloud.org\Visual Nunit 2010\1.2.4.
Also create two config files and dropped into this folder, but no luck.
The same issue was happening with Nunit gui, so I did the same fix to the nunit config files and I was able to successfully run the tests using nunit.
Any help in this aspect will be greatly appreciated.