nunit-core team mailing list archive
-
nunit-core team
-
Mailing list archive
-
Message #00470
[Bug 566431] Re: NUnit crashes on .NET 4.0 x64 assemblies
** Tags added: 64-bit
--
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
References