ASP.net MVC 3 Razor - jQuery Intellisense

前端 未结 4 985
有刺的猬
有刺的猬 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

    Seems for me in Vs2012 with a _layout.cshtml that the solution from @Mohamed Meligy doesn't help in views using that layout file. Maybe I'm missing something?

    However - the solution here which seems to be recommended approach seems to work a treat and now I have intellisense for all references to all files I add references to in _references.js and don't need the runtime false trick bit, and can keep the views totally clean of references.

提交回复
热议问题