Configuring NUnit 2.2 to use Visual Studio 2005 Beta 2

James Newkirk, in a July 5, 2004 blog entry, detailed how to setup the config for using NUnit 2.1 with Visual Studio 2005 Beta 1. Within the blog entry he showed how to modify the startup node in the nunit-gui.exe.config file as follows:

<startup>
      <requiredRuntime version="v2.0.40607" />
</startup>

The version attribute is the .Net runtime version. I than realized, I should be able to do the same thing with the runtime version of Beta 2.

 

The next step was to find the exact version number. I found a nifty tool called the DotNet VersionCheck Utility. I was able to use the tool and check the version. I found that the following was being used by my install of Visual Studio.NET 2005 Beta 2: 2.0.50215.44.

 

 

I then added the version number to the C:\Program Files\NUnit 2.2\bin\nunit-gui.exe.config file, leaving the original version attributes:

<startup>

            <supportedRuntime version="v2.0.50215" />

            <supportedRuntime version="v1.1.4322" />

            <supportedRuntime version="v2.0.40607" />

            <supportedRuntime version="v1.0.3705" />

            <requiredRuntime version="v1.0.3705" />

      </startup>

 

Now, NUnit 2.2 will run with Visual Studio 2005 Beta 2.

 

One thing to note, is that the NUnit GUI will run when launched directly. However, after setting the debug property for the NUnit project to start the NUnit GUI exe as shown below

 

the following exception is thrown when attempting to debug from Visual Studio 2005 Beta 2:

 

In any event, it is nice to have the trusty NUnit, I know and love, working as I learn the Visual Studio 2005 (Beta 2) IDE. I plan on tinkering with the VSTS Unit Testing shortly. Stay tuned for later musings on that topic.