Using NUnit in Visual Studio 2010

To use NUnit with Visual Studio 2010, follow these steps:

1. Make sure you have the latest version of NUnit installed

2. In Visual Studio, open up the nunit.exe.config file found at:

C:\Program Files\NUnit 2.x.x\bin\net-2.0\

3. Under the <configuration> element, add the following (make sure the version number is correct for your installation of VS 2010):


           <requiredRuntime version=v4.0.30319 />


4. Under the <runtime> element, add the following:

<loadFromRemoteSources enabled=true />

Best Regards,
Kevin McNeish
INETA Speaker
Chief Software Architect, MM .NET Application Framework

5 thoughts on “Using NUnit in Visual Studio 2010

  1. Hi Kevin, uh, I like the blog, I’m just getting into NUnit now, so this is great timing. But what’s this config update going to do for me?


  2. i tried this but i have issue. i mean when i run my project nothing happens but project runs normally. No unit tests are run. i checked version and its correct.

    Do i need to give reference of this config file in my project?..Or i have to something else

    My nunit.exe.config is as following

    < ?xml version="1.0" encoding="utf-8"?>

Leave a Reply

Your email address will not be published. Required fields are marked *