Visual Studio 2015 Razor View MVC Types not recognized

后端 未结 7 1418
Happy的楠姐
Happy的楠姐 2020-12-30 20:21

I installed Visual Studio 2015 and rebooted. The \"MVC\" types are not recognized in 2015 but are still recognized in 2013. This is my \"Views\" web.config:

7条回答
  •  盖世英雄少女心
    2020-12-30 20:55

    I discovered that I needed to bump the version for the assemblies dealing with the config sections to 3.0.0.0 in the Views/Web.config file:

      
        
          

    They were previously all 2.0.0.0.

提交回复
热议问题