Best way to add jquery to an "empty" web project in visual studio?

Hey, when I start a new solution and select "web application", visual studio goes ahead and creates a script folder with jquery-1.4.1.js, jquery-1.4.1.min.js and jQuery-1.4.1- by default vsdoc.js. But if I instead launched a new solution and chose the "empty web application", there are no folders that can be expected, obviously. I'm just wondering what is the best way to add jquery to my new project, should I just copy and paste the scripts folder from the default web application?

early!

+7
source share
5 answers
0
source

Use NuGet! He will install things in the correct folders and keep track of things for you. There is no reason to do it yourself.

Right click on your solution, select package management. Find jquery and install it. You may need to install the Nuget package manager if you do not already have it.

+8
source

Use nuget package http://nuget.org/packages/jquery

Install-Package jQuery Command

+1
source

Or maybe you can create a collection of necessary files every time you use in your project and paste these files into an empty project ...

+1
source

You can simply create a script folder call and drag the jquery library into that folder (or add an exisitng element). The library of the new version of jQuery is available for download at http://docs.jquery.com/Downloading_jQuery

+1
source

All Articles