代码之家  ›  专栏  ›  技术社区  ›  Andreas Öhlund

NUnit失败,System.ArgumentException:net-4.0框架不可用

  •  10
  • Andreas Öhlund  · 技术社区  · 16 年前

    ProcessModel:默认域用法:Single 执行时间:net-4.0 未处理的异常: 在NUnit.Util.TestAgency.GetAgent(RuntimeFramework framework,Int32 waitTime,Boolean enableDebug) 在NUnit.ConsoleRunner.ConsoleUi.Execute(ConsoleOptions选项) 位于NUnit.ConsoleRunner.Runner.Main(字符串[]args)

    操作系统 Winserver 2008 R2 x64

    2.5.4.10098

    测试组件

    命令行

    有什么想法吗?

    2 回复  |  直到 16 年前
        1
  •  14
  •   Frederik    16 年前

    结合Kev的建议(在参数列表中添加/framework=4.0.30319)

    在下面

     <configuration>
    

    <startup>  <requiredRuntime version="v4.0.30319" /></startup>
    

    在下面 <configuration><runtime> 添加:

     <legacyUnhandledExceptionPolicy enabled="1" />
    
        2
  •  1
  •   Kevin    16 年前

    我和CC.net有同样的问题。

    我现在使用arguement/framework=4.0.30319从NAnt运行NUnit

    希望这有帮助

    基夫