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

  1. Install the LibMan CLI as a dotnet tool:
    dotnet tool install -g Microsoft.Web.LibraryManager.Cli
    
  2. Initialize LibMan in the project:
    libman init
    
    This creates a libman.json file if one does not already exist.
  3. 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