简体   繁体   中英

Could not load file or assembly 'Microsoft.VisualStudio.TestTools.UITesting, Version=10.0.0.0

I just installed Visual studio2013 and I am trying to create a Coded UI test. Nothing fancy, just going to a webpage and clicking a link. I am getting the following error. This is not a upgraded project, it's a new project in VS 2013.

Unable to load types from the test source 'c:\\users\\alomash\\documents\\visual studio 2013\\Projects\\CodedUITestProject1\\CodedUITestProject1\\bin\\Debug\\CodedUITestProject1.dll'. Some or all of the tests in this source may not be discovered. If you are running unit tests for Windows Store apps and referencing custom WinMD type then please visit http://go.microsoft.com/fwlink/?LinkId=238340 for more info. Error details: System.IO.FileNotFoundException: Could not load file or assembly 'Microsoft.VisualStudio.TestTools.UITesting, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The system cannot find the file specified.

It looks to me like Visual Studio is having a hard time finding your DLL. Is the path you've given local to your machine or to another? If not, you will have to change the reference path to that DLL to be relative to your machine.

If this DLL is available as a NuGet package I would recommend getting the DLL from there instead that way you don't have to worry about a specific path, especially if this is a group project that is run on multiple machines.

Hope that helps! I've had similar issues and this worked for me.

You are attempting to use Visual Studio 2013 Professional to develop your Coded UI tests. Coded UI is only available in the Visual Studio Premium/Ultimate editions. This is why you don't have the necessary assemblies available.

See the Requirements section here .

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM