nunit-core team mailing list archive
-
nunit-core team
-
Mailing list archive
-
Message #00472
[Bug 566431] Re: NUnit crashes on .NET 4.0 x64 assemblies
Peter Ritchie just responded to my blog comment and said that x86
assemblies ALSO required the manual requiredRuntime edit on his machine,
and that x64 assemblies wouldn't work regardless.
For my part, I just tried running nunit-x86.exe on my machine with tests
recompiled for x86. Without the requiredRuntime edit, I got the same
error as in the 64-bit case. However, the 32-bit test worked fine once
I added the same requiredRuntime edit to nunit-x86.exe.config as well.
So it would seem this isn't a 64-bit-specific error after all, but a
general error with any .NET 4.0 assemblies.
** Tags removed: 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