Overview
Library Manager (LibMan) is included in Visual Studio. LibMan allows you to add external libraries such as Bootstrap.
How
Via Visual Studio
Right-click project > Add > Client-Side Library…
Via LibMan CLI
- Install the LibMan CLI as a dotnet tool:
dotnet tool install -g Microsoft.Web.LibraryManager.Cli
- Initialize LibMan in the project:This creates a
libman init
libman.json
file if one does not already exist. - Add libraries:
libman install <library> --destination <path> --files <file-to-install> # if not specified, install all files in package --provider <cdnjs|filesystem|jsdeliver|unkpg>
Bootstrap
Add to /wwwroot/lib/bootstrap