- Download the latest jQuery version, both the minified and uncompressed versions, and put them in the scripts directory
- Go to the jQuery vsdoc File Generator and select the same version as you downloaded in step 2. Build the doc file, copy the output and put it in a file named jquery-x.x.x-vsdoc.js in the scripts directory (where x.x.x is the jQuery version number of course).
The last file will give full IntelliSense support for jQuery in Visual Studio. More on that later. Your scripts directory should now look something like this:
jquery-1.6.2.js jquery-1.6.2.min.js jquery-1.6.2-vsdoc.js
Next include the minified version in the master page.
/// <reference path="jquery-1.6.2.min.js" />
Note that we don’t actually use the uncompressed version of the jQuery file. I still recommend adding it, it might be needed if you have to debug into the jQuery code. When it is time to update jQuery we have to update all these references. Fortunately a bit of search and replace should make the process fairly simple.
- Right click any ASPX page in the Solution Explorer
- Select Browse With…
- Select Internet Explorer and set it as default
All of this has been tested with Microsoft Visual Web Developer 2010 Express, which is what I’m currently using.