Visual Studio 2010 's Web project jquery Library

Source: Internet
Author: User
Tags modify version zip jquery library visual studio visual studio 2010

We know that in a Non-empty Web project (including WebForm and MVC) in Visual Studio , the jquery library is automatically included in the project's Scripts folder.


Click to enlarge

But careful people have seen that the jquery version contained in the official version is the 1.4.1 version, not the 1.4.2 version of the latest jquery official release. In the new version of the efficiency of the great increase and the repair of some bugs, recommend everyone to use 1.4.2 version, and give up the 1.4.1 version. The simple adjustment of a single item is to remove the old version and then add the corresponding file on version 1.4.2. But many of us may prefer to create later projects are 1.4.2 version rather than 1.4.1 version, how to do? I have mentioned in the relevant webcast, that is, to the VS2010 installation directory to modify the project template related files. The directory location takes the project for C # as an example:

    • X86:program Files\Microsoft Visual Studio 10.0\common7\ide\projecttemplates\csharp\web\1033
    • X64:program Files (x86) \microsoft Visual Studio 10.0\common7\ide\projecttemplates\csharp\web\1033

The files that need to be modified are yellow in the following image:


Click to enlarge

Copy the three files, then unzip them, and do the following:

    1. Delete and update the jquery related files in the Scripts folder to the latest version, including Jquery-1.4.2-vsdoc.js,jquery-1.4.2.js,jquery-1.4.2.min.js, etc.
    2. Then modify the reference in the Xxxxx.csproj file about jquery1.4.1 to 1.4.2
    3. Finally, replace the jquery-1.4.1 in the Xxxxxx.vstemplate file with the jquery-1.4.1
    4. Save the above changes and package them as zip files
    5. Overwrite the new zip file with the same name back to the directory where the project template resides
    6. Then overwrite the file before the package into the cache directory of the project template (Projecttemplates of the project template path to Projecttemplatescache)
    7. Complete


Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.