2
早上好,下午或晚上,NUnit的2.5.9問題
我試圖使用NUnit 2.5.9運行包含在Visual Studio 2010中,其面向.NET 2.0內置的組件一些單元測試。不過,我每次都會收到System.BadImageFormatException
的例外......我嘗試了描述here的解決方法,但無濟於事。我也下載了源代碼並在Visual Studio 2010下針對.NET 2.0進行編譯,但異常不斷彈出......這裏出了什麼問題?
System.BadImageFormatException...
Server stack trace:
em System.Reflection.Assembly._nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, Assembly locationHint, StackCrawlMark& stackMark, Boolean throwOnFileNotFound, Boolean forIntrospection)
em System.Reflection.Assembly.InternalLoad(AssemblyName assemblyRef, Evidence assemblySecurity, StackCrawlMark& stackMark, Boolean forIntrospection)
em System.Reflection.Assembly.Load(AssemblyName assemblyRef)
em NUnit.Core.Builders.TestAssemblyBuilder.Load(String path)
em NUnit.Core.Builders.TestAssemblyBuilder.Build(String assemblyName, Boolean autoSuites)
em NUnit.Core.Builders.TestAssemblyBuilder.Build(String assemblyName, String testName, Boolean autoSuites)
em NUnit.Core.TestSuiteBuilder.Build(TestPackage package)
em NUnit.Core.SimpleTestRunner.Load(TestPackage package)
em NUnit.Core.ProxyTestRunner.Load(TestPackage package)
em NUnit.Core.ProxyTestRunner.Load(TestPackage package)
em NUnit.Core.RemoteTestRunner.Load(TestPackage package)
em System.Runtime.Remoting.Messaging.StackBuilderSink._PrivateProcessMessage(IntPtr md, Object[] args, Object server, Int32 methodPtr, Boolean fExecuteInContext, Object[]& outArgs)
em System.Runtime.Remoting.Messaging.StackBuilderSink.SyncProcessMessage(IMessage msg, Int32 methodPtr, Boolean fExecuteInContext)
Exception rethrown at [0]:
em System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg, IMessage retMsg)
em System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData, Int32 type)
em NUnit.Core.TestRunner.Load(TestPackage package)
em NUnit.Util.TestDomain.Load(TestPackage package)
em NUnit.Util.TestLoader.LoadTest(String testName)
非常感謝。