Tuesday, February 22, 2011

How to use NUnit in Visual Studio 2010

To run NUnit, you need to add the following to the NUnit.exe.config file:

Under C:\Program Files\NUnit 2.5.9\bin\net-2.0\nunit.exe.config (replace version with whatever you have installed) add the following:

<startup>
<!-- the below is WRONG! See here for why.
<requiredruntime version="v4.0.30319">
-->
<supportedruntime version="v4.0">
</startup>

Also add the following in the <runtime> block: