visual-studio-2012 - 如何解决 Visual Studio 2012 RC 中编码 UI 测试和 MVC 脚手架之间的冲突

标签 visual-studio-2012 coded-ui-tests asp.net-mvc-scaffolding

我正在运行 Visual Studio 2012 RC(截至 2012 年 7 月 11 日,所有最新更新都已安装。我有一个 asp.net mvc 4 解决方案

  • 一个网络项目
  • 一个单元测试项目
  • 一个编码的 UI 测试项目
  • 一个 Web 性能和负载测试项目

  • 当我第一次创建解决方案时,我可以毫无问题地添加编码的 UI 测试。但是,今天我尝试创建一个编码的 UI 测试并收到以下错误

    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.



    我有一个 similar problem before with Visual Studio 2010 .我仍然有这个问题。

    但是,如果我卸载(通过 NuGet)MVC Scaffolding 和 T4Scaffolding 并重新启动 Visual Studio,我可以再次创建编码的 UI 测试,但是如果我添加回脚手架包并重新启动 Visual Studio,我会再次收到错误并且无法创建编码的 UI 测试.

    看起来
  • Visual Studio 中的脚手架包和编码的 UI 测试之间存在冲突
  • 原始错误 Visual Studio 2010 错误尚未在 Visual Studio 2012 中修复 - Microsoft has acknowledged that this is a bug .

  • 任何人都可以帮助这个脚手架和编码 UI 测试的粉丝吗?在没有变通方法的情况下使用这两种技术会很棒。

    最佳答案

    对此没有解决办法。唯一真正的解决方法是不使用 MVC 脚手架。

    关于visual-studio-2012 - 如何解决 Visual Studio 2012 RC 中编码 UI 测试和 MVC 脚手架之间的冲突,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/11431841/

    相关文章:

    c++ - 2个类之间的双向关联

    sql-server - SQL Server 2012 Express 备份数据库失败

    c# - VS2010 上的 TFS,合并代码问题

    asp.net-core - ASP.NET Core 2 - 如何删除脚手架路由?

    asp.net-mvc - 创建新 Controller 时出现错误 :'Unsupported context type'

    c++ - Visual Studio 2012 项目中的 tesseract Remove_Reference 模糊符号

    visual-studio - MsBuild 找不到发布配置文件

    .net - 如何从 MTM 运行 Ranorex 自动化测试?

    visual-studio-2013 - 用数据文件替换记录值 - 数据驱动测试

    asp.net-core - 脚手架MVC在继承IdentityDbContext时不加载ApplicationDbContext