I'm learning Scott Allen - ASP.Net Core Fundamental course from Pluralsight and trying to add the external library from Node_Modules to my project.
Here is the project's structure:
And how I including datatable library to my project (adding to Pages/Shared/_Layout.cshtml)

But when the app is running, it cannot find these libraries:

Questions:
- What wrong with this way ?
- Can you guys suggest some effective ways to import external libraries to ASP.NET CORE app?
I'm using .NET 5
<PropertyGroup>
<TargetFramework>net5.0</TargetFramework>
</PropertyGroup>


node_modulesdirectly to website visitors. Instead your application's build process will run tools like Gulp, WebPack, Uglify, Rollup, etc which produce compact (minified) JS which will be in your/scriptsor/distfolder to be served. (Of course integrating an npm build with MSBuild can be complicated).