“@Model”, “@Viewbag” and “@Url” “does not exist in the current context” Razor MVC3 when using Visual Studio 11 Beta/Visual Studio 2012 RC

前端 未结 3 1694
故里飘歌
故里飘歌 2021-02-19 10:38

I\'ve created an MVC3 application in Visual Studio 10. When editing views the \"@Model\", \"@Viewbag\" and \"@Url\" all appear valid.

I recently installed Visual Studio

3条回答
  •  既然无缘
    2021-02-19 11:13

    Add the following setting to your MAIN web.config file's appSettings section:

    
    

    From Connect: http://connect.microsoft.com/VisualStudio/feedback/details/732597/visual-studio-11-beta-razor-intellisense-not-working

提交回复
热议问题