当我尝试使用nunit-console.exe在解决方案文件中运行所有测试时:
nunit-console.exe MyProject.sln
我得到以下异常(如下所示).但是当在我的文件夹结构中的任何项目上运行控制台运行时,运行器工作正常并且从未给我以下异常.我也很确定我链接的nunit库的版本与我正在使用的跑步者相同.此外,我的解决方案不引用包含我的.sln文件的目录结构之外的任何项目.
有没有人知道我能做什么!?:(
谢谢!菲尔
NUnit version 2.5.10.11092
Copyright (C) 2002-2009 Charlie Poole.
Copyright (C) 2002-2004 James W. Newkirk, Michael C. Two, Alexei A. Vorontsov.
Copyright (C) 2000-2002 Philip Craig.
All Rights Reserved.
Runtime Environment -
OS Version: Microsoft Windows NT 6.1.7601 Service Pack 1
CLR Version: 4.0.30319.1 ( Net 4.0 )
ProcessModel: Default DomainUsage: Default
Execution Runtime: net-4.0
Unhandled Exception:
System.IO.FileLoadException: Could not load file or assembly 'nunit.framework, Version=2.5.10.11092, Culture=neutral, Pu
blicKeyToken=96d09a1eb7f44a77' or one of its dependencies. The …Run Code Online (Sandbox Code Playgroud)