我在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