Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Bootstrap 4 library name in Libman (CDNJS) from Visual Studio 2019

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

enter image description here

like image 982
Andreas Avatar asked Aug 07 '19 20:08

Andreas


People also ask

What is LibMan in Visual Studio?

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.

What is LibMan JSON file?

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!

How do I restore my LibMan?

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.

What is LibMan JSON in .NET core?

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.


2 Answers

From the CDNJS page:

twitter-bootstrap

like image 147
Christian Gollhardt Avatar answered Sep 22 '22 06:09

Christian Gollhardt


You can use the Provider unpkg

enter image description here

like image 28
Palanikumar Avatar answered Sep 25 '22 06:09

Palanikumar