我在C#项目中添加了几个文件夹,现在当我尝试从NUnit运行项目时我总是会遇到以下情况例外 -System.IO.FileNotFoundException:无法找到文件'x x x x bin debug project.dll
System.IO.FileNotFoundException:未能找到文件“X \ X \ X \ X \ BIN \调试\不会产生project.dll
项目dll文件和例外的详细信息是:
System.IO.FileNotFoundException...
at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
at System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy)
at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access)
at NUnit.Core.AssemblyReader.CalcHeaderOffsets()
at NUnit.Core.AssemblyReader..ctor(String assemblyPath)
at NUnit.Util.RuntimeFrameworkSelector.SelectRuntimeFramework(TestPackage package)
at NUnit.Util.DefaultTestRunnerFactory.GetTargetProcessModel(TestPackage package)
at NUnit.Util.DefaultTestRunnerFactory.MakeTestRunner(TestPackage package)
at NUnit.Util.TestLoader.LoadTest(String testName)
dll的确在'x \ x \ x \ x \ bin \ debug \'中?或者它在另一个目录中? – Oded 2011-04-17 17:48:42
Nop它不存在,当我建立项目时,不会生成dll。 – Tarun 2011-04-18 03:44:28