Library Manager (LibMan) is a lightweight, client-side library acquisition tool. LibMan downloads popular libraries and frameworks from the file system or from a content delivery network (CDN)
For the life of me I cannot figure out why a
libman.json file is not included by default when I scaffold an ASP.NET MVC project - this file is used by Library Manager (LibMan) to download the libraries that the scaffold brought down for me in
wwwroot\lib. These are things like bootstrap and jquery.
As soon as I add this folder to my
.gitignore (example below) they wont be commited which means when another developer pulls down the repository or I delete the folder and clone again the client side files are not there and the UI looks like trash :(
So what I now do is create the
libman.json file as soon as possible.
Thankfully Visual Studio has this
Manage Client-Side Libraries... option which lets me search for these files and add them.
Selecting this option will open the json file which can be manually edited.
Alternatively in solution explorer, right-click the folder
wwwroot and choose
I’ve had luck with providers
If you then delete
wwwroot/lib or clone a project that had this excluded you can restore the libraries by right clicking
libman.json and selecting
Restore Client-Side Libraries