Running NUnit 2.5 against Visual Studio 2010 .Net 4 code


 

I discovered that if you add the following to the relevant NUnit config file you can run a test dll built for .NET 4.0 in Visual Studio 2010 beta

Under <configuration> add:

<startup>
  <requiredRuntime version="v4.0.20506" />
</startup>

and under <runtime> add:

<loadFromRemoteSources enabled="true" />
About these ads

11 thoughts on “Running NUnit 2.5 against Visual Studio 2010 .Net 4 code

  1. True, that realy works. Just put it to NUnit.exe.config and not to config of your test project (I did that error on start) :)

    • Also, for VS2010 beta 2, the version number can be updated to 4.0.21006, but it seems that the build number isn’t checked as the beta 1 version number you listed above worked correctly for me too.

  2. Pingback: Emil’s Blog » Blog Archive » NUnit with Visual Studio 2010 Beta 2

  3. The actual .NET Framework version installed on your machine can be found from C:\WINDOWS\Microsoft.NET\Framework. Find the version of the .NET installed by looking into the folders.

  4. Pingback: Mixed mode error with NUnit visual studio extension | Technology & Programming Answers

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s