加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 编程开发 > asp.Net > 正文

asp.net – MVC 5 – > MVC 5.1迁移.智能感知问题

发布时间:2020-12-16 06:27:31 所属栏目:asp.Net 来源:网络整理
导读:我刚刚从MVC 5将我的项目更新为MVC 5.1.主web.config文件自动更新,但主View和Areas文件夹下的web.configs没有更改.我怀疑这就是为什么现在我失去了intellisense和resharper支持我的行动,控制器和区域. 有没有人知道MVC 5.1视图的正确web.config内容?只需将3
我刚刚从MVC 5将我的项目更新为MVC 5.1.主web.config文件自动更新,但主View和Areas文件夹下的web.configs没有更改.我怀疑这就是为什么现在我失去了intellisense和resharper支持我的行动,控制器和区域.

有没有人知道MVC 5.1视图的正确web.config内容?只需将3.0.0.0替换为3.1.0.0和5.0.0.0 – > 5.1.0.0没有解决问题.

它发生在Visual Studio 2012和2013 Professional中.

解决方法

从这个 MS article找到了一个解决方案:

MVC 5.1 Tooling Support and Razor IntelliSense are Still Broken Even
After Installing VS2013 Update 1 RC

Known issue:

If a VS2013 user installed “Microsoft ASP.NET and Web Tools 2013.1 for
Visual Studio 2013” before they install VS2013 Update 1 RC,they won’t
be able to get MVC 5.1 tooling support that comes with VS2013 Update 1
RC.

Symptom:

MVC 5.1 tooling support and Razor IntelliSense are still broken even
after installing VS2013 Update 1 RC.

Workaround:

  1. From “Add/Remove Program”,uninstall “Microsoft ASP.NET and Web
    Tools 2013.1 for Visual Studio 2013”
  2. Repair VS2013 RTM
  3. Install VS2013 update 1 RC if you have not yet installed it. If you have
    already installed this,you don’t need to reinstall or repair it.
  4. From Web PI,reinstall Microsoft ASP.NET and Web Tools 2013.1 for Visual Studio 2013 or repair Azure SDK 2.2.

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读