aserwin aserwin - 2 years ago 81
Javascript Question

MVC 4 and jQuery intellisense - is there a better way?

I am trying to enable intellisense for jQuery 2 in Visual Studio 2012.
The only way I can find to make it work is to add the

@if (false) {<script src="path/to/jquery-2.0.0.min.js" type="text/javascript" />}

to EVERY view that I want to use jQuery in.
To put it simply, this is not acceptable.
Is there another way to handle this?

Answer Source

open - package manager console write

Install-Package jQuery

and it will automatically install the files that you need.

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download