Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Cannot add jquery using NuGet Package Manager in VS 2017

I tried to add jquery to an asp.net core project using NuGet Package Manager of Visual Studio Community 2017 (version 15.5.2), but there is no jquery js files added to my project. Here is the screenshot:

enter image description here

Tried with Bower Package Manager, then the files are downloaded to bower_components folder but not to wwwroot as many people said.

Same thing for jquery-ui, bootstrap, etc.

Anyone experienced the same problem. Is there any work-around?

BTW, this accepted solution doesn't work for me: Where are jQuery-UI scripts stored in MVC6 project?

like image 370
tala9999 Avatar asked Dec 19 '17 16:12

tala9999


1 Answers

For ASP.NET Core in Visual Studio 2017:

  • NuGet shouldn't be used for client-side libraries.
  • After that Bower was used for this purpose, but now it is deprecated.
  • Currently the supported tool for managing client-side libraries is LibMan. Here is very good explanation how to use it in VS2017.
like image 140
psur Avatar answered Oct 06 '22 00:10

psur