I'm running Visual Studio 2012 RC (all the latest updates have been installed as of 7/11/2012. I have an asp.net mvc 4 solution with
- a Web Project
- a Unit Test Project
- a Coded UI Test Project
- a Web performance and load Test project
When I first created the solution I could add Coded UI Tests with no problem. However, today I tried to create a Coded UI Test and got the following error
The following package failed to load: C:\Users[File Path Goes Here]\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.
I had a similar problem before with Visual Studio 2010. I still have that problem for that matter.
However, if I uninstall (via NuGet) MVC Scaffolding and T4Scaffolding and restart Visual Studio I can create Coded UI Tests again, but if I add back in the scaffolding packages and restart Visual Studio I get the error again and cannot create the Coded UI test.
It seems that
- there is a conflict between the scaffolding packages and Coded UI Tests in Visual Studio
- The original error Visual Studio 2010 error has not been fixed in Visual Studio 2012 - Microsoft has acknowledged that this is a bug.
Can anyone help this fan of scaffolding and Coded UI Tests? It would be great to use both technologies without workarounds.