Restore libman libraries for asp.net core app on build
We're using asp.net core and pulling in javascript libraries through our libman.json file in our project. Visual Studio automatically pulls those files in. How can we have those libraries pulled down as part of the build process (similar to Nuget restore)?
Here is a sample of what is in our libman.json
{
"version": "1.0",
"defaultProvider": "cdnjs",
"libraries": [
{
"library": "lazysizes@5.1.2",
"destination": "wwwroot/lib/lazysizes/"
},
{
"library": "dropzone@5.5.1",
"destination": "wwwroot/lib/dropzone/"
}
]
}
Keyboard shortcuts
Generic
? | Show this help |
---|---|
ESC | Blurs the current field |
Comment Form
r | Focus the comment reply box |
---|---|
^ + ↩ | Submit the comment |
You can use Command ⌘
instead of Control ^
on Mac
Support Staff 1 Posted by Feodor Fitsner on 12 Feb, 2020 04:08 PM
Hi Austin,
You can use LibMan CLI to restore the packages. LibMan CLI could be installed during the build: https://docs.microsoft.com/en-us/aspnet/core/client-side/libman/lib...
2 Posted by austin on 13 Feb, 2020 09:33 PM
Okay, thank you!