简体   繁体   中英

Asp.Net Core Package Manager Console. Installing NuGet library not creating a library/script folder

I've seen other solutions when installing a NuGet package, in a web project, a folder is created to simply drag a script tag into a HTML document. This is done in Visual Studio of course. I've installed jQuery and jQuery-Validation to my NETCoreApp and am quite confused on how to enable the folder creation to drag these references into my page. 在此处输入图片说明

In Asp.Net Core, Nuget is used for server side packages & Bower for client side packages.

To get the folder for scripts, do the following:

  1. Add 'Bower Configuration File' to the project. 在此处输入图片说明

  2. Under 'dependencies', add all the dependencies needed. For example: 在此处输入图片说明

  3. Save the file. You should see all the scripts being restored.

  4. There should be a lib folder created under wwwroot. You should see all the dependent scripts under lib from which you can drag the references to your pages.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM