有限公司Intelliesense在VS2013上MVC3项目 [英] Limited Intelliesense in VS2013 on MVC3 project

查看:185
本文介绍了有限公司Intelliesense在VS2013上MVC3项目的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我最近安装了VS 2013的专业开设在里面我身边的项目应用之一。该项目是使用剃刀视图引擎的应用MVC3。我注意到,编辑视图(CSHTML)时,我没有得到进入智能感知,我是用来在2012年2例,我注意到马上为@ Url.Content()和@Viewbag。在code仍然编译和运行,只是没有智能感知。与它搞乱了一下后,我想我应该检查升级日志,果然,我发现...

I recently installed vs 2013 professional and opened one of my side project applications in it . The project is an MVC3 application using the razor view engine. I noticed that when editing a view (cshtml ) I wasn't getting access to intellisense that I was used to in 2012. 2 Examples i noticed right away were @Url.Content() and @Viewbag. The code still compiles and runs, just no intellisense. After messing with it a bit i figured i should check the upgrade log and sure enough i found ...

智能感知的剃刀(CSHTML和VBHTML)文件仅限于HTML标记。请参阅<一个href=\"http://go.microsoft.com/fwlink/?LinkID=317645\">http://go.microsoft.com/fwlink/?LinkID=317645关于如何升级MVC 3项目的更多信息。

"Intellisense for Razor (CSHTML and VBHTML) files is limited to HTML markup. Please see http://go.microsoft.com/fwlink/?LinkID=317645 for additional information on how to upgrade an MVC 3 project."

提供的链接只是告诉你,从MVC3升级到mvc4。我的问题是:是我唯一的选择?为了使用VS2013在旧MVC3项目,我是将不得不升级他们都还是会永远vs2013支持MVC剃刀文件的完整的智能感知?

The link provided just tells you to upgrade from mvc3 to mvc4. My question is: is that my only option ? In order to use VS2013 on older mvc3 projects am I going to have to upgrade them all or will vs2013 ever support full intellisense on mvc razor files?

推荐答案

在这里找到这...

很快你会看到MVC5在VS2013的新版本。 MVC5将VS2013被并入。 MVC3不会在VS2013的支持。我最后一次证实了这Channel9上。那么,谁只安装VS2013或没有旧版本的人会得到与仍处于MVC3项目的麻烦。这个错误发生,因为MVC4和5安装不包含在ASP.NET MVC 3版本中使用的DLL。

Soon you will see a new version of MVC5 in VS2013. MVC5 will be incorporated in VS2013. MVC3 will not be supported in VS2013. I confirmed it on channel9 last time. So People who have installed only VS2013 or doesn’t have old version will be got trouble with the project that is still in MVC3. This error happen because MVC4 and 5 installation doesn’t contain the DLL that is used in Version 3 of ASP.NET MVC.

<一个href=\"http://geekswithblogs.net/anirugu/archive/2013/10/16/how-to-migrate-asp.net-mvc-3--mvc4-project-to.aspx\">http://geekswithblogs.net/anirugu/archive/2013/10/16/how-to-migrate-asp.net-mvc-3--mvc4-project-to.aspx

弄成项目升级到MVC 5 ...创建一个新的项目,带来了我的模型,视图和控制器的文件夹中的所有内容。也不得不更新webconfig,包括一些包我已经安装在previous项目。

Ended up upgrading the project to MVC 5 ... Created a new project and brought over all the contents of my model, view and controller folders. Also had to update the webconfig to include some packages I had installed in the previous project.

这篇关于有限公司Intelliesense在VS2013上MVC3项目的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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