简体   繁体   中英

Problems with Resharper? VS 2015 and MVC

I got VS 2015 and MVC, i get this red stuff in several projects. What can be the cause. Views is the only problem, works fine in code behind.

MVC视图

add below in web.config(Inside View folder web.config as well outside web.config)

   <namespaces>
    <add namespace="System.Web.Mvc" />
    <add namespace="System.Web.Mvc.Ajax" />
    <add namespace="System.Web.Mvc.Html" />

  </namespaces>

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM