Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

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

thanks in advance!

like image 918
chilleo Avatar asked Apr 17 '12 18:04

chilleo


4 Answers

Use NuGet! It will install things in the proper folders, and keep track of things for you. No reason to do this yourself anymore.

Right click on your solution, choose manage packages. Search for jquery and install it. You might need to install the Nuget package manager if you haven't got it already.

like image 132
Dervall Avatar answered Oct 19 '22 03:10

Dervall


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

The command is "Install-Package jQuery"

like image 40
amdmax Avatar answered Oct 19 '22 01:10

amdmax


You can just create a folder call script and drag the jquery libary into that folder(or use add exisitng item). New version Jquery library is available for download on http://docs.jquery.com/Downloading_jQuery

like image 20
ZERO Avatar answered Oct 19 '22 03:10

ZERO


Or may be you can make a collection of needed files every time you use in your project and paste that files to empty project...

like image 33
naim shaikh Avatar answered Oct 19 '22 02:10

naim shaikh