gpt4 book ai didi

c# - MVC3 项目上 VS2013 中的有限 Intelliesense

转载 作者:IT王子 更新时间:2023-10-29 04:47:28 26 4
gpt4 key购买 nike

我最近安装了 vs 2013 professional 并在其中打开了我的一个副项目应用程序。该项目是一个使用 razor View 引擎的 MVC3 应用程序。我注意到在编辑 View (cshtml) 时,我无法访问我在 2012 年习惯的智能感知。我立即注意到的 2 个示例是 @Url.Content() 和 @Viewbag。代码仍然可以编译和运行,只是没有智能感知。在稍微弄乱之后,我想我应该检查升级日志,果然我发现了……

“Razor(CSHTML 和 VBHTML)文件的 Intellisense 仅限于 HTML 标记。有关如何升级 MVC 3 项目的更多信息,请参阅 http://go.microsoft.com/fwlink/?LinkID=317645。”

提供的链接只是告诉您从 mvc3 升级到 mvc4。我的问题是:这是我唯一的选择吗?为了在旧的 mvc3 项目上使用 VS2013,我是否必须全部升级它们,或者 vs2013 是否会支持 mvc razor 文件上的完整智能感知?

最佳答案

在这里找到这个......

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.

http://geekswithblogs.net/anirugu/archive/2013/10/16/how-to-migrate-asp.net-mvc-3--mvc4-project-to.aspx

结束了将项目升级到 MVC 5 ...创建了一个新项目并带来了我的模型、 View 和 Controller 文件夹的所有内容。还必须更新 webconfig 以包含我在上一个项目中安装的一些包。

关于c# - MVC3 项目上 VS2013 中的有限 Intelliesense,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/19567235/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com