Quantcast
Channel: Active questions tagged nuget-package - Stack Overflow
Viewing all articles
Browse latest Browse all 3198

Blazor: how to include javascript-package, which is installed with Nuget-Package-Manager?

$
0
0

I'm afraid this will be a stupid question. But I don't manage it to use my JS-Package (for example jQuery), which i have installed with Visual Studio Nuget-Package-Manage in my .net 5 Blazor Server-App.

What i did:Installing the Package. Here I installed jquery.datatable which includes jQuery itself:

Image of my Project

But now, i don't know how to include it for example in my "_Host.cshmtl"-File:

<script type="text/javascript" charset="utf-8" src="???WHERE IS IT????"></script>

Where is my *.js-File? For example: query.dataTables.js ??I found it on "C:\Users\xxxxx.nuget\packages\jquery.datatables\1.10.15" and"C:\Users\xxxxxx.nuget\packages\jquery\1.7.0"

Do i realy have to copy it to my wwwroot-Folder manualy?If so, why i should use the package-manager?

Thanks for your help!!


Viewing all articles
Browse latest Browse all 3198

Trending Articles



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