• <legend id='sdQVP'><style id='sdQVP'><dir id='sdQVP'><q id='sdQVP'></q></dir></style></legend>

      • <bdo id='sdQVP'></bdo><ul id='sdQVP'></ul>

      <tfoot id='sdQVP'></tfoot>

        <i id='sdQVP'><tr id='sdQVP'><dt id='sdQVP'><q id='sdQVP'><span id='sdQVP'><b id='sdQVP'><form id='sdQVP'><ins id='sdQVP'></ins><ul id='sdQVP'></ul><sub id='sdQVP'></sub></form><legend id='sdQVP'></legend><bdo id='sdQVP'><pre id='sdQVP'><center id='sdQVP'></center></pre></bdo></b><th id='sdQVP'></th></span></q></dt></tr></i><div id='sdQVP'><tfoot id='sdQVP'></tfoot><dl id='sdQVP'><fieldset id='sdQVP'></fieldset></dl></div>
      1. <small id='sdQVP'></small><noframes id='sdQVP'>

        NUnit“无法加载文件或程序集'MyTestProject'

        NUnit quot;could not load file or assemby #39;MyTestProject#39;(NUnit“无法加载文件或程序集MyTestProject)

            <i id='ROvcy'><tr id='ROvcy'><dt id='ROvcy'><q id='ROvcy'><span id='ROvcy'><b id='ROvcy'><form id='ROvcy'><ins id='ROvcy'></ins><ul id='ROvcy'></ul><sub id='ROvcy'></sub></form><legend id='ROvcy'></legend><bdo id='ROvcy'><pre id='ROvcy'><center id='ROvcy'></center></pre></bdo></b><th id='ROvcy'></th></span></q></dt></tr></i><div id='ROvcy'><tfoot id='ROvcy'></tfoot><dl id='ROvcy'><fieldset id='ROvcy'></fieldset></dl></div>
            <legend id='ROvcy'><style id='ROvcy'><dir id='ROvcy'><q id='ROvcy'></q></dir></style></legend>

            <small id='ROvcy'></small><noframes id='ROvcy'>

                <bdo id='ROvcy'></bdo><ul id='ROvcy'></ul>
                    <tbody id='ROvcy'></tbody>
                • <tfoot id='ROvcy'></tfoot>
                • 本文介绍了NUnit“无法加载文件或程序集'MyTestProject'的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  限时送ChatGPT账号..

                  我正在设置一台新的 64 位机器作为构建服务器运行.当我尝试将我的 NUnit 测试程序集加载到 NUnit GUI 中时,我收到以下错误.

                  I'm setting up a new 64 bit machine to run as a build server. When I try to load my NUnit test assembly into NUnit GUI I get the following error.

                  没有什么明显的缺失,所有的依赖似乎都存在.所有的 DLL 都是针对 x86 平台编译的.

                  There is nothing obvious missing, all the dependencies seem to be present. All the DLLs are compiled for the x86 platform.

                  使用 NUnit 2.4.7.我尝试升级到 2.4.8,但出现同样的错误.

                  Using NUnit 2.4.7. I have tried upgrading to 2.4.8 but the same error occurs.

                  System.IO.FileNotFoundException: 可以不加载文件或程序集'MyTestProject' 或其中之一依赖关系.系统找不到指定的文件.

                  System.IO.FileNotFoundException: Could not load file or assembly 'MyTestProject' or one of it's dependencies. The system cannot find the file specified.

                  System.IO.FileNotFoundException...

                  System.IO.FileNotFoundException...

                  Server stack trace: 
                     at System.Reflection.Assembly.nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, Assembly locationHint, StackCrawlMark& stackMark, Boolean throwOnFileNotFound, Boolean forIntrospection)
                     at System.Reflection.Assembly.InternalLoad(AssemblyName assemblyRef, Evidence assemblySecurity, StackCrawlMark& stackMark, Boolean forIntrospection)
                     at System.Reflection.Assembly.InternalLoad(String assemblyString, Evidence assemblySecurity, StackCrawlMark& stackMark, Boolean forIntrospection)
                     at System.Reflection.Assembly.Load(String assemblyString)
                     at NUnit.Core.Builders.TestAssemblyBuilder.Load(String path)
                     at NUnit.Core.Builders.TestAssemblyBuilder.Build(String assemblyName, Boolean autoSuites)
                     at NUnit.Core.Builders.TestAssemblyBuilder.Build(String assemblyName, String testName, Boolean autoSuites)
                     at NUnit.Core.TestSuiteBuilder.BuildSingleAssembly(TestPackage package)
                     at NUnit.Core.TestSuiteBuilder.Build(TestPackage package)
                     at NUnit.Core.SimpleTestRunner.Load(TestPackage package)
                     at NUnit.Core.ProxyTestRunner.Load(TestPackage package)
                     at NUnit.Core.ProxyTestRunner.Load(TestPackage package)
                     at NUnit.Core.RemoteTestRunner.Load(TestPackage package)
                     at System.Runtime.Remoting.Messaging.StackBuilderSink._PrivateProcessMessage(IntPtr md, Object[] args, Object server, Int32 methodPtr, Boolean fExecuteInContext, Object[]& outArgs)
                     at System.Runtime.Remoting.Messaging.StackBuilderSink.SyncProcessMessage(IMessage msg, Int32 methodPtr, Boolean fExecuteInContext)
                  
                  Exception rethrown at [0]: 
                     at System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg, IMessage retMsg)
                     at System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData, Int32 type)
                     at NUnit.Core.TestRunner.Load(TestPackage package)
                     at NUnit.Util.TestDomain.Load(TestPackage package)
                     at NUnit.Util.TestLoader.LoadTest(String testName)
                  

                  推荐答案

                  解决方案是为AnyCPU"而不是 32 位构建测试项目.我可以解决使我们使用 32 位的限制.

                  The solution was to build the test project for "AnyCPU" instead of 32-bit. I can work around the restriction that made us use 32 bit.

                  感谢 David 和 Joe90 的建议.我当然学到了一些新东西.fuslogvw.exe 太棒了,我以前不知道它存在.

                  Thank you David and Joe90 for the suggestions. I've certainly learned a couple of new things. fuslogvw.exe is awesome, I didn't previously know it existed.

                  这篇关于NUnit“无法加载文件或程序集'MyTestProject'的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                  本站部分内容来源互联网,如果有图片或者内容侵犯了您的权益,请联系我们,我们会在确认后第一时间进行删除!

                  相关文档推荐

                  Force JsonConvert.SerializeXmlNode to serialize node value as an Integer or a Boolean(强制 JsonConvert.SerializeXmlNode 将节点值序列化为整数或布尔值)
                  Using JSON to Serialize/Deserialize TimeSpan(使用 JSON 序列化/反序列化 TimeSpan)
                  Could not determine JSON object type for type quot;Classquot;(无法确定类型“Class的 JSON 对象类型.)
                  How to deserialize a JSONP response (preferably with JsonTextReader and not a string)?(如何反序列化 JSONP 响应(最好使用 JsonTextReader 而不是字符串)?)
                  how to de-serialize JSON data in which Timestamp it-self contains fields?(如何反序列化时间戳本身包含字段的JSON数据?)
                  JSON.Net custom contract serialization and Collections(JSON.Net 自定义合约序列化和集合)
                          <bdo id='P1ScO'></bdo><ul id='P1ScO'></ul>
                          <legend id='P1ScO'><style id='P1ScO'><dir id='P1ScO'><q id='P1ScO'></q></dir></style></legend>

                          <small id='P1ScO'></small><noframes id='P1ScO'>

                          • <tfoot id='P1ScO'></tfoot>
                              <tbody id='P1ScO'></tbody>
                            <i id='P1ScO'><tr id='P1ScO'><dt id='P1ScO'><q id='P1ScO'><span id='P1ScO'><b id='P1ScO'><form id='P1ScO'><ins id='P1ScO'></ins><ul id='P1ScO'></ul><sub id='P1ScO'></sub></form><legend id='P1ScO'></legend><bdo id='P1ScO'><pre id='P1ScO'><center id='P1ScO'></center></pre></bdo></b><th id='P1ScO'></th></span></q></dt></tr></i><div id='P1ScO'><tfoot id='P1ScO'></tfoot><dl id='P1ScO'><fieldset id='P1ScO'></fieldset></dl></div>