Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

ASP.NET (MVC) jQuery Intellisense -> Error in ReSharper

I'm working on an ASP.NET MVC project using jQuery.

I'm referencing the jQuery VSDoc file (jquery-1.3.2-vsdoc.js) in order to get Intellisense for jQuery in Visual Studio:

<% /* %><script src="~/Scripts/jquery-1.3.2-vsdoc.js"></script><% */ %>

Then Resharpers live solution analysis (the red/green symbol in the lower right status bar) complains about the closing comment ( */ ).

Is there another way of including the VSDoc file without Reshaper (v4.5) complaining?

like image 909
kay.herzam Avatar asked Jan 28 '26 08:01

kay.herzam


1 Answers

There is a hotfix for Visual Studio 2008 and Visual Web Developer that will automatically include the -vsdoc.js file if you include jquery-1.3.2.js (or any other js file that has a similarly named -vsdoc file next to it.)

You can read more about the hotfix http://blogs.msdn.com/webdevtools/archive/2008/11/07/hotfix-to-enable-vsdoc-js-intellisense-doc-files-is-now-available.aspx

like image 157
NerdFury Avatar answered Jan 30 '26 20:01

NerdFury