Restore libman libraries for asp.net core app on build

austin's Avatar

austin

12 Feb, 2020 03:52 PM

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/"
    }
  ]
}

  1. Support Staff 1 Posted by Feodor Fitsner on 12 Feb, 2020 04:08 PM

    Feodor Fitsner's Avatar

    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. 2 Posted by austin on 13 Feb, 2020 09:33 PM

    austin's Avatar

    Okay, thank you!

Reply to this discussion

Internal reply

Formatting help / Preview (switch to plain text) No formatting (switch to Markdown)

Attaching KB article:

»

Attached Files

You can attach files up to 10MB

If you don't have an account yet, we need to confirm you're human and not a machine trying to post spam.

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

 

01 Oct, 2024 04:27 PM
26 Sep, 2024 03:49 PM
26 Sep, 2024 09:02 AM
25 Sep, 2024 07:07 PM
24 Sep, 2024 08:39 PM
24 Sep, 2024 06:47 AM