MVC 5 ->MVC 5.1 迁移.智能感知问题 [英] MVC 5 -> MVC 5.1 Migration. Intellisense issues

查看:19
本文介绍了MVC 5 ->MVC 5.1 迁移.智能感知问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我刚刚将我的项目从 MVC 5 更新到 MVC 5.1.主 web.config 文件自动更新,但主视图和区域文件夹下的 web.config 没有更改.我怀疑这就是为什么现在我失去了对我的操作、控制器和区域的智能感知和更清晰的支持.

I just updated my project to MVC 5.1 from MVC 5. The main web.config file got updated automatically, but web.configs under main View and Areas folders weren't changed. I suspect that's why now I lost both intellisense and resharper support for my actions, controllers and areas.

有人知道 MVC 5.1 视图的正确 web.config 内容吗?只是将 3.0.0.0 替换为 3.1.0.0 和 5.0.0.0 -> 5.1.0.0 并没有解决问题.

Does anyone know correct web.config content for MVC 5.1 Views? Just replacing 3.0.0.0 to 3.1.0.0 and 5.0.0.0 -> 5.1.0.0 did not solve the issue.

它发生在 Visual Studio 2012 和 2013 Professional 中.

It happens in both Visual Studio 2012 and 2013 Professional.

推荐答案

从这个MS 文章:

MVC 5.1 工具支持和 Razor IntelliSense 仍然是破碎的安装 VS2013 Update 1 RC 后

已知问题:

如果 VS2013 用户安装了Microsoft ASP.NET and Web Tools 2013.1 forVisual Studio 2013"​​在他们安装 VS2013 Update 1 RC 之前,他们不会能够获得 VS2013 Update 1 附带的 MVC 5.1 工具支持遥控.

If a VS2013 user installed "Microsoft ASP.NET and Web Tools 2013.1 for Visual Studio 2013" before they install VS2013 Update 1 RC, they won’t be able to get MVC 5.1 tooling support that comes with VS2013 Update 1 RC.

症状:

MVC 5.1 工具支持和 Razor IntelliSense 仍然是平衡的安装 VS2013 Update 1 RC 后.

MVC 5.1 tooling support and Razor IntelliSense are still broken even after installing VS2013 Update 1 RC.

解决方法:

  1. 从添加/删除程序",卸载Microsoft ASP.NET 和 Web适用于 Visual Studio 2013 的工具 2013.1"
  2. 修复 VS2013 RTM
  3. 如果您尚未安装 VS2013 update 1 RC,请安装它.如果你有已经安装了这个,你不需要重新安装或修复它.
  4. 从 Web PI,重新安装 Microsoft ASP.NET 和 Web Tools 2013.1Visual Studio 2013 或修复 Azure SDK 2.2.

这篇关于MVC 5 ->MVC 5.1 迁移.智能感知问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆