ASP.net MVC 3 Razor - jQuery Intellisense

前端 未结 4 995
有刺的猬
有刺的猬 2021-02-07 11:01

I am using Visual Studio 2010 / ASP.net MVC 3 with the Razor View Engine. I created a new Project with the Internet Application template. What do I need to do to get Intellisens

4条回答
  •  我寻月下人不归
    2021-02-07 11:54

    I found good explanation which worked for me at: http://theycallmemrjames.blogspot.com/2011/03/jquery-intellisense-with-aspnet-mvc-and.html

    These lines:

     @if (false) 
    { 
         
         
    }
    

    should be added to every view (where intellisense is needed). This will enable intellisense but will not add the second reference at runtime.

提交回复
热议问题