How do you add the Bootstrap 4 library to a project using Libman as package manager and CDNJS as provider, it doesn't seem to be in the list of avaliable libraries?
Is it named something else compared to Bower & NPM?
In this case, I am using a .net Core project with Visual Studio Enterprise 2019
Library Manager (“LibMan” for short) is Visual Studio's experimental client-side library acquisition tool. It provides a lightweight, simple mechanism that helps users find and fetch library files from an external source (such as CDNJS) and place them in your project.
It creates a new file named libman. json . This file contains the list of libraries to download. Each library has a name, a version, a list of files to download, and the location where the file will be copied. Of course, there is an autocompletion for the name, the version, and files!
Right-click libman. json in Solution Explorer and select Enable Restore Client-Side Libraries on Build from the context menu. Build the project to confirm LibMan file restoration occurs.
LibMan downloads popular libraries and frameworks from the file system or from a content delivery network (CDN). The supported CDNs include CDNJS, jsDelivr, and unpkg. The selected library files are fetched and placed in the appropriate location within the ASP.NET Core project.
From the CDNJS page:
twitter-bootstrap
You can use the Provider unpkg
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With