/framework switch does not recognize net-4.5
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
NUnit Framework |
Fix Released
|
High
|
Charlie Poole | ||
NUnit V2 |
Fix Released
|
High
|
Charlie Poole |
Bug Description
I'm attempting to get some unit tests run using nunit-console with the /framework:net-4.5 switch. The console continues to throw an exception. This is the output its giving:
ProcessModel: Default DomainUsage: Single
Execution Runtime: net-4.5
Unhandled Exception:
System.
Parameter name: framework
at NUnit.Util.
at NUnit.Util.
at NUnit.ConsoleRu
at NUnit.ConsoleRu
The same source base is also building and running under 3.5 and 4.0 which work as expected. I'm fairly certain that 4.5 is installed correctly on the computer in question. This is using nunit 2.6.1 on windows 7 64 bit.
*****
based on a discussion group question from 8/29/2013
Related branches
Changed in nunit-3.0: | |
assignee: | nobody → Charlie Poole (charlie.poole) |
milestone: | none → 2.9.6 |
status: | Triaged → Fix Released |
Changed in nunitv2: | |
status: | Triaged → Fix Committed |
assignee: | nobody → Charlie Poole (charlie.poole) |
milestone: | none → 2.6.3 |
Changed in nunitv2: | |
status: | Fix Committed → Fix Released |
I'd appreciate it if you would try two different workarounds.
1. Use /framework:net-4.0 since 4.5 is simply 4.0 with some extra capabilities. I suspect your tests will run.
2. Don't use any switch at all. NUnit will analyze the test assembly and determine how it should be run.
I'll set the priority of the bug depending on how these experiments turn out.
Charlie