3.1 API Intellisense in VS2010

Discussion created by mkoneya on Aug 6, 2012
Latest reply on Aug 7, 2012 by JGravois-esristaff
I have updated a JavaScript web application created in Visual Studio 2010 to the new 3.1 API and am using the Intellisense VSDOC file available here:

This looks to be very handy for Visual Studio users, but I was not able to get it work within my HTML file.   I have my HTML file, scripts, and styles in seperate files so I placed the following in my .html file:

<script type="text/javascript" src="Assets/scripts/jsapi_vsdoc_v31.js"></script>

But when I run the project,   I get an error in IE that says "Expected identifier, string or number" which refers to the above JavaScript file and there is no intellisense.

I can get intellisense to work in my JavaScript files by using the following reference 

/// <reference path="~/Assets/Scripts/jsapi_vsdoc_v31.js" />,

but the problem is that I have several JavaScript files and I have to add the reference to each JavaScript file.    Has anyone been able to get this to work in the HTML file or is there another way to use Intellisens without having to add the 'reference' to each JavaScript file?