我刚刚将mvc4项目(使用vs2012)更新为mvc5。在遇到了很多与依赖项有关的问题之后,我终于找到了this tutorial并将其整理整齐,以便它可以毫无问题地进行构建。但是,我必须对任何 View (.cshtml文件)进行智能感知:@ using,@ model,@ html。 *,@styles ...无效。我一定打破了对razor View 引擎的引用,使其无法正确解析它们。我仔细检查了web.configs,什么也看不到。有任何想法吗?谢谢。
最佳答案
Visual Studio 2012的ASP.NET和Web工具2013.1已发布,应解决VS 2012的MVC5智能感知问题。
This release brings a ton of great improvements, and include some fantastic enhancements to ASP.NET MVC 5, Web API 2, Scaffolding and Entity Framework to users of Visual Studio 2012 and Visual Studio 2012 Express for Web.
您可以下载更新:http://blogs.msdn.com/b/webdev/archive/2013/11/18/announcing-release-of-asp-net-and-web-tools-2013-1-for-visual-studio-2012.aspx
关于.net - 从ASP.NET MVC 4更新到MVC 5的 View 中没有Intellisense,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/19500371/