在视图中更新的ASP.NET MVC 4至5 MVC没有智能感知 [英] No Intellisense in views updating from ASP.NET MVC 4 to MVC 5

查看:219
本文介绍了在视图中更新的ASP.NET MVC 4至5 MVC没有智能感知的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我刚刚更新的mvc4项目(使用vs2012)来mvc5。有很多相关的依赖性问题后,我终于找到<一href="http://www.asp.net/mvc/tutorials/mvc-5/how-to-upgrade-an-aspnet-mvc-4-and-web-api-project-to-aspnet-mvc-5-and-web-api-2"相对=nofollow>本教程并拉直的事情,以便它关掉了问题,不过,我有智能感知任何的意见(.cshtml文件):@using,@model,@ HTML * @styles ......没有什么作品。我必须打破了参考剃刀视图引擎不能够正确地解析他们。我有双重检查的web.configs和什么都看不到。有任何想法吗?谢谢。

I just updated an mvc4 project (using vs2012) to mvc5. After having a lot of issues related to dependencies, I finally found this tutorial and straightened things up so that it builds without issues However, I have to intellisense for any of the views (.cshtml files): @using, @model, @html.*, @styles... nothing works. I must have broken the reference to the razor view engine not being able to parse them properly. I have double checked the web.configs and cannot see anything. Any ideas? Thanks.

推荐答案

ASP.NET和Web工具2013.1为Visual Studio 2012已经正式发布,并应与VS 2012解决MVC5智能感知的问题。

ASP.NET and Web Tools 2013.1 for Visual Studio 2012 has now been released and should resolved the MVC5 intellisense issue with VS 2012.

该版本带来了大量的很大的改进,包括一些   梦幻般的增强ASP.NET MVC 5,网络API 2,脚手架和   实体框架的Visual Studio 2012和Visual Studio 2012的用户   防爆preSS的网络。

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.

您可以下载更新:<一href="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">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

这篇关于在视图中更新的ASP.NET MVC 4至5 MVC没有智能感知的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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