← Back to team overview

nunit-core team mailing list archive

[Bug 566431] [NEW] NUnit crashes on .NET 4.0 x64 assemblies

 

Public bug reported:

NUnit 2.5.4 shows an error (NullReferenceException) when attempting to
test .NET 4.0 assemblies built for AnyCPU (= running as x64 on my
system).  This is with the final release version of VS2010 on Vista 64,
and affects both the GUI and the console runner.  Attempting to do
anything else in the GUI runner then causes a follow-up exception.

To fix, I had to edit the files nunit.exe.config and nunit-
console.exe.config, adding the following line after the <configuration>
tag in each file: <startup><requiredRuntime version="v4.0.30319"
/></startup>

Peter Ritchie reports that .NET 4.0 assemblies do work if they were built for x86 and he used nunit-x86.exe, hence I assume that this problem is specific to x64 assemblies:
http://msmvps.com/blogs/peterritchie/archive/2010/04/18/getting-started-unit-testing-with-nunit.aspx

** Affects: nunitv2
     Importance: Undecided
         Status: New

-- 
NUnit crashes on .NET 4.0 x64 assemblies
https://bugs.launchpad.net/bugs/566431
You received this bug notification because you are a member of NUnit
Developers, which is subscribed to NUnit V2.

Status in NUnit V2 Test Framework: New

Bug description:
NUnit 2.5.4 shows an error (NullReferenceException) when attempting to test .NET 4.0 assemblies built for AnyCPU (= running as x64 on my system).  This is with the final release version of VS2010 on Vista 64, and affects both the GUI and the console runner.  Attempting to do anything else in the GUI runner then causes a follow-up exception.

To fix, I had to edit the files nunit.exe.config and nunit-console.exe.config, adding the following line after the <configuration>  tag in each file: <startup><requiredRuntime version="v4.0.30319" /></startup>

Peter Ritchie reports that .NET 4.0 assemblies do work if they were built for x86 and he used nunit-x86.exe, hence I assume that this problem is specific to x64 assemblies:
http://msmvps.com/blogs/peterritchie/archive/2010/04/18/getting-started-unit-testing-with-nunit.aspx





Follow ups

References