jQuery Project Template for Visual Studio
Recently I wanted to create a couple of websites, more precisely, AJAX websites with a lot of animation and calls to (external) web services. So basically, I needed an HTML page with included jQuery library and support for IntelliSense. No need for ASP.NET or any other server side stuff, like data access, MVC etc.
Since I wanted to reuse this project template, I created my own Visual Studio template – jQuery Project. Creating a template is very simple, if you’re interested in it, here you can find very well written article about it by Rick Strahl.
In this template you have one HTML file with a jQuery script tag included and a MyScript.js file with a little trick to enable IntelliSense in an external javascript file:
/// <reference path="http://ajax.microsoft.com/ajax/jQuery/jquery-1.4.1-vsdoc.js"/>
We are referencing to Microsoft’s host servers, thus decreasing latency, increasing parallelism and enabling better caching. Read more on the subject in this great article on Encosia.
That’s all you need to develop with jQuery in Visual Studio. Download this template here.
author: Aleš Rosina | Comments: 3 |
March
2010
Thanks for the template, I'll give it a go and let you know how I get on
I will test it, i bookmark this page and come in a few day to give you a feedback !
I love the template and would give it a A++, have used it on two projects so far!

![Reblog this post [with Zemanta]](http://img.zemanta.com/reblog_e.png?x-id=29d617cd-ae41-415e-992a-ef9aa529debb)
