System.IO.FileNotFoundException:无法加载文件或程序集“ Microsoft.VisualStudio.TestTools.UITesting”

时间:2018-07-24 08:50:28

标签: c# dll namespaces dllimport system.io.file

我已经安装了.dll文件,但是一直看到:

Result StackTrace:  
Result Message: 
Test method “Method” threw exception: 
System.IO.FileNotFoundException: Could not load file or assembly 'Microsoft.VisualStudio.TestTools.UITesting, Version=12.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The system cannot find the file specified.Assembly manager loaded from:  C:\Windows\Microsoft.NET\Framework\v4.0.30319\clr.dll
Running under executable  C:\PROGRAM FILES (X86)\MICROSOFT VISUAL STUDIO 14.0\COMMON7\IDE\COMMONEXTENSIONS\MICROSOFT\TESTWINDOW\vstest.executionengine.x86.exe
--- A detailed error log follows. 
=== Pre-bind state information ===
LOG: DisplayName = Microsoft.VisualStudio.TestTools.UITesting, Version=12.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
 (Fully-specified)
LOG: Appbase = file:///C:/Users/documents/visual studio 2015/Projects/bin/Debug
LOG: Initial PrivatePath = NULL
Calling assembly : a_framework, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null.
===
LOG: This bind starts in default load context.
LOG: Using application configuration file: C:\Users\documents\visual studio 2015\Projects\bin\Debug\App.Config
LOG: Using host configuration file: 
LOG: Using machine configuration file from C:\Windows\Microsoft.NET\Framework\v4.0.30319\config\machine.config.
LOG: Post-policy reference: Microsoft.VisualStudio.TestTools.UITesting, Version=12.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
LOG: Attempting download of new URL file:///C:/Users/documents/visual studio 2015/Projects/bin/Debug/Microsoft.VisualStudio.TestTools.UITesting.DLL.
LOG: Attempting download of new URL file:///C:/Users/documents/visual studio 2015/Projects/bin/Debug/Microsoft.VisualStudio.TestTools.UITesting/Microsoft.VisualStudio.TestTools.UITesting.DLL.
LOG: Attempting download of new URL file:///C:/Users/documents/visual studio 2015/Projects/bin/Debug/Microsoft.VisualStudio.TestTools.UITesting.EXE.
LOG: Attempting download of new URL file:///C:/Users/documents/visual studio 2015/Projects/bin/Debug/Microsoft.VisualStudio.TestTools.UITesting/Microsoft.VisualStudio.TestTools.UITesting.EXE.

有什么我可以摆脱的最佳方法吗?

0 个答案:

没有答案