Skip to main content

NUnit for .NET Framework 4

One thing that hits me over and over again is running NUnit or Xunit on libraries built on .NET Framework 4. The fix is very easy but never appears on top results when googling for it.

Fix for getting NUnit and xUnit run tests in DLLs built with .NET Framework 4

Add the following under <configuration> element in nunit-console.exe.config or xunit.console.x86.exe.config if xunit is your drug.

<pre class="brush:xml"><startup>
 <requiredRuntime version="v4.0.30319" />
</startup>
<runtime>
 <loadFromRemoteSources enabled="true" />
</runtime>
comments powered by Disqus