VS2015 ASP.NET MVC 名称 'model' 在当前上下文中不存在

VS2015 ASP.NET MVC the name 'model' does not exist in the current context

我在 VS2013 中开发 ASP.NET MVC 4,一切正常,然后我卸载了 2013 并安装了 2015,我能够打开项目,构建它甚至 运行, 一切正常 (run/debug)。问题是我的所有观点都包含错误:

the name 'model\Scripts\Url...' does not exist in the current context  

此外,模型中列表的 .Where 方法显示错误以及所有 @Html 助手。我想强调该项目仍然有效 w\o 任何问题所以问题是 UI 或包相关。我试图强制 uninstall\upgrade Microsoft.AspNet.MVC 但程序包管理器控制台抛出错误并回滚尝试。如果有帮助,我可以提供任何必要的信息,在此先感谢您。

新发布的 VS2015 IDE 似乎不再支持 MVC3/MVC4 项目,而它只支持 MVC5:

Unable to find MVC3 , MVC4, MVC5 projects (or) No information about supported MVC Framework versions

如果有严格的要求将任何现有的 MVC3/4 解决方案转换为 MVC5(对于 VS 2015),您可以继续执行中列出的步骤 How to Upgrade an ASP.NET MVC 4 and Web API Project to ASP.NET MVC 5 and Web API 2 指导。

更新 2016-05-03

似乎在安装 VS 2015 SP2 更新后,它的表现好多了。如果有机会,我建议您升级 IDE 并检查问题是否消失。