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.ArgumentException: The net-4.5 framework is not available
Parameter name: framework
at NUnit.Util.TestAgency.GetAgent(RuntimeFramework framework, Int32 waitTime, Boolean enableDebug)
at NUnit.Util.ProcessRunner.Load(TestPackage package)
at NUnit.ConsoleRunner.ConsoleUi.Execute(ConsoleOptions options)
at NUnit.ConsoleRunner.Runner.Main(String[] args)
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.2 on windows 7 64 bit.
*****
based on a discussion group question from 8/29/2013
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 ArgumentExcepti on: The net-4.5 framework is not available TestAgency. GetAgent( RuntimeFramewor k framework, Int32 waitTime, Boolean enableDebug) ProcessRunner. Load(TestPackag e package) nner.ConsoleUi. Execute( ConsoleOptions options) nner.Runner. Main(String[ ] args)
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.2 on windows 7 64 bit.
*****
based on a discussion group question from 8/29/2013