Quantcast
Channel: ASP.NET Core
Viewing all articles
Browse latest Browse all 9386

How to reference files from NuGet packages

$
0
0

What is the correct way to reference files that were downloaded as part of a package.

Recently I was trying to implement autocomplete in a text box and the samples I found had me install the jquery package and then include a reference to some of the .js files... but I did not see all of the files show up anywhere in the directories that make up my aspnet core 2.0 mvc web app.

After doing some research, I found that Bower packages do show up in the wwwroot\lib folder (and that it is configurable) - but in this instance I needed to reference files from NuGet packages.  These apparently are downloaded here %userprofile%\.nuget\packages -- but I did not know how to reference from one of my cshtml pages.


Viewing all articles
Browse latest Browse all 9386

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>