Visual studio showing syntax errors in razor statements but works

后端 未结 2 608
野趣味
野趣味 2020-12-20 23:39

I\'ve a project in MVC 3. It works perfectly and each time I build it, it succeeds. However, Visual Studio insist in showing compile errors in views in each razor syntax. Fo

2条回答
  •  生来不讨喜
    2020-12-21 00:15

    Open your web.config file located inside of Views folder and add this section if it's missing:

    
      
      
        
          
          
          
          
        
      
    
    

提交回复
热议问题