← Back to team overview

nunit-core team mailing list archive

[Bug 1222148] Re: /framework switch does not recognize net-4.5

 

The 4.0 work around is what I'm currently doing and that seems to work
fine.   The current assembly doesn't use anything really 4.5 specific so
it will work for the short term.  This does run it under 4.0.

When running with no /framework switch nunit runs under 3.5.

I did some reviewing of things and the original stack trace I reported
above only occurs with nunit 2.6.1.   With 2.6.2 and the /framework:4.5
switch the assembly runs as 3.5.   I was incorrect in stating that the
error was from 2.6.2.  (I've updated the ticket as well)


** Description changed:

  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
+ 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

-- 
You received this bug notification because you are a member of NUnit
Developers, which is subscribed to NUnit V2.
https://bugs.launchpad.net/bugs/1222148

Title:
  /framework switch does not recognize net-4.5

Status in NUnit V2 Test Framework:
  New

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.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.1 on
  windows 7 64 bit.

  *****
  based on a discussion group question from 8/29/2013

To manage notifications about this bug go to:
https://bugs.launchpad.net/nunitv2/+bug/1222148/+subscriptions


Follow ups

References