“The name 'HTML' does not exist in the current context” in MVC 3 Views

后端 未结 21 2327
野的像风
野的像风 2020-12-15 03:50

I´m starting to use \"MVC 3\" but I´m facing some little problems. In my Views, when I code something like this:

@if(Request.IsAuthenticated) {
    

        
21条回答
  •  离开以前
    2020-12-15 04:16

    Apologies for the necro post.

    Selecting "Build | Rebuild Solution" corrected this issue for me in Visual Studio 2015. In my case, the warnings occurred after renaming the primary namespace of a project. A rebuild set everything straight.

提交回复
热议问题