Visual Studio 2015 Razor View MVC Types not recognized

后端 未结 7 1417
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:41

    From Chris Zhao on asp.net: You could consider uninstalling VS 2015, and reinstall it again,and check whether "Web Developer tools" is selected [go into Custom during the installation to be sure it is checked.

    I did this and it got rid of the red underlines under Viewbag.

提交回复
热议问题