jQuery in Your Visual Studio Project

The jQuery framework is part of nearly all the Visual Studio web project templates. This includes the readable version of the file (useful for debugging) jquery.js and the minified version (for faster processing in production) jquery-min.js. Recall from Chapter 17, “Building Modern Websites with ASP.NET 5” that these files are stored in the bower_components folder of the ASP.NET 5 Web Site template and end up in the wwwroot/lib/jquery folder. Chapter 17 also introduced Bower and the bower.js file for including client scripts in your project. The ASP.NET 5 template uses this approach to include jQuery in the project.

Recall from the prior section that you need to add a reference to your page for any JavaScript ...

Get Microsoft Visual Studio 2015 Unleashed, Third Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.