asp.net mvc3 intellisense don't fire for css classes

青春壹個敷衍的年華 提交于 2019-12-06 05:54:00
John Gietzen

Well, the "why" is simple: Visual Studio does not execute the call to Url.Content when discovering the CSS files. VS executes javascript when evaluating JS expressions, but not for discovering files.

You are probably wondering how to get it to work...

Well, there doesn't really seem to be a good way, as of yet. However, I cover one of the options (centered around JavaScript) on my blog:

http://otac0n.com/blog/2011/09/01/getting-javascript-intellisense-in-mvc-razor-views.html

This technique should work for CSS as well.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!