views:

120

answers:

2

Now that Visual Studio 2010 has jQuery support, I'm wondering how I can update the release version? When you currently create a project, it automatically creates the 1.4.1 files, but there is now the 1.4.2 release on the jQuery.com website.

How can I tell VS2010 to use the more recent version of jQuery?

+1  A: 

Automatic update have some issues. If you are using jQuery library with some additional plugin and they depend on the previous jQuery library framework then they will not work. That is why you need to think carefully before updating the jQuery library from version to version.

UPDATE:

You could modify an existing template for Visual Studio which will allow you to refer to the new version of jQuery. Here is an article about creating custom Visual Studio templates.

http://msdn.microsoft.com/en-us/library/ms247119(v=VS.80).aspx

azamsharp
yes, i agree. I only want the latest release when I create a NEW project, because when I build a new project, I plan on using the latest release of jQuery (including the plugins)
rockinthesixstring
+3  A: 

You can create a new project template with jQuery 1.4.2 included: http://msdn.microsoft.com/en-us/library/ms247120%28v=VS.100%29.aspx

Dave Swersky
Is there simply no way to update the existing templates? It will get old very quick if we have to create new templates every time the jQuery library gets updated.
rockinthesixstring
this like seems to show how to manually update templates: http://msdn.microsoft.com/en-us/library/ms185319%28VS.80%29.aspx
rockinthesixstring
You could modify the existing templates, I believe they are stored under the install folder for VS2010. Creating new templates is easy, however- just create a new project, replace the jQuery 1.4.1 files with 1.4.2 files, and select File-Export Template. This would allow you to keep your default templates, just in case.
Dave Swersky
ok, I'll do that.
rockinthesixstring