MVC 5 - > MVC 5.1迁移。智能感知问题 [英] MVC 5 -> MVC 5.1 Migration. Intellisense issues
问题描述
我刚刚从MVC 5.主web.config文件中得到了自动更新,更新我的项目的MVC 5.1,但在主视图的web.config
和地区的文件夹间没有'T改变。我怀疑这就是为什么现在我失去了我的动作,控制器和地区都IntelliSense和ReSharper的支持。
有谁知道MVC 5.1浏览正确的web.config文件的内容?只需更换3.0.0.0至3.1.0.0 5.0.0.0和 - > 5.1.0.0没有解决问题。
它发生在这两个的Visual Studio 2012年和2013专业版。
从发现这个<一个解决方案href=\"http://www.asp.net/visual-studio/overview/2013/aspnet-and-web-tools-20132-$p$pview-for-visual-studio-2013-release-notes#mvc\"相对=nofollow> MS文章:
MVC 5.1的工具支持和剃刀智能感知仍在盈亏相抵
安装后VS2013更新1 RC
的已知问题:的
如果一个用户VS2013对安装微软ASP.NET和Web工具2013.1
的Visual Studio 2013之前,他们安装VS2013更新1 RC,他们不会
能够得到随VS2013更新1 MVC 5.1工具支持
RC。
的症状:的
MVC 5.1工具支持和剃刀智能感知仍在甚至破裂
安装后VS2013更新1 RC。
的解决方法:的
- 从添加/删除程序卸载微软ASP.NET和Web
工具2013.1为Visual Studio 2013
- 修复VS2013 RTM
- 安装VS2013更新1 RC如果你还没有安装它。如果你有
已经安装了这个,你不需要重新安装或修复它。
- 从网络PI,重新安装Microsoft ASP.NET和Web Tools 2013.1为
的Visual Studio 2013或修复的Azure SDK 2.2。
块引用>I just updated my project to MVC 5.1 from MVC 5. The main web.config file got updated automatically, but
web.config
s 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.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.
It happens in both Visual Studio 2012 and 2013 Professional.
解决方案Found a solution from this MS article:
MVC 5.1 Tooling Support and Razor IntelliSense are Still Broken Even After Installing VS2013 Update 1 RC
Known issue:
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.
Symptom:
MVC 5.1 tooling support and Razor IntelliSense are still broken even after installing VS2013 Update 1 RC.
Workaround:
- From "Add/Remove Program", uninstall "Microsoft ASP.NET and Web Tools 2013.1 for Visual Studio 2013"
- Repair VS2013 RTM
- Install VS2013 update 1 RC if you have not yet installed it. If you have already installed this, you don’t need to reinstall or repair it.
- From Web PI, reinstall Microsoft ASP.NET and Web Tools 2013.1 for Visual Studio 2013 or repair Azure SDK 2.2.
这篇关于MVC 5 - &GT; MVC 5.1迁移。智能感知问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!