I have a project which I have to add a coded UI test into.
If I create a test it gives me the following error:
The following package failed to load: C:\Users\AppData\Local\assembly\dl3\W2RG6NJ4.G6O\TMOZA01A.527\ad952cf5\PublicAssemblies\Microsoft.VisualStudio.TestTools.UITesting.dll. Coded UI Test is now in an inconsistent state. Remove this package and restart Visual Studio to work with Coded UI Test.
Then it adds the Coded UI test to the project and if I try to record it gives me the same error when I generate the code.
I have seen similar errors, but with the Extension tool, and not the Microsoft.VisualStudio.TestTools.UITesting.dll
This is the error I get when I try recording.
The following package failed to load: C:\Users\AppData\Local\assembly\dl3\W2RG6NJ4.G6O\TMOZA01A.527\ad952cf5\PublicAssemblies\Microsoft.VisualStudio.TestTools.UITesting.dll
Can anyone help me to solve this?
I had the same problem today. I had an existing application made in Visual Studio 2010. Some months ago we updated it to Visual Studio 2012 and now update 1. When we added a coded ui project, we got the message above. One of the projects in the solution is a mvc 3 project (made in visual studio 2010 and upgraded everytime). That project was the problem for not succesfully creating the coded ui project. We think it is the T4Scaffolding nuget package.
How to fix: Restart VS 2012 with your project. Unload your MVC project. Add Coded UI test project. Everything must work now correctly. Reload your mvc project. Everything should still work.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With