title: Restore Libman JS Libraries in Azure DevOps Build Pipeline
body: <p>I've set up a happy Azure DevOps build pipeline, which is triggered on a commit to a branch, then restores Nuget packages, builds my Mvc.Core web app and deploys it to an Azure App Service.</p>
  
  <p>However the JS libraries referenced in LibMan are not restored and deployed to Azure. How do I get this to happen?</p>
  
  <p>I've included the LibMan build package (which I read <a href="https://github.com/Liero/libman-vsts-extension" rel="nofollow noreferrer">would carry out the task automatically</a>), but with no joy.</p>
  
  <pre><code>&lt;PackageReference Include="Microsoft.Web.LibraryManager.Build" Version="2.0.96" /&gt;    
  </code></pre>
  
  <p>Do I really need to add a .net core custom command to the pipeline, to <a href="https://docs.microsoft.com/en-us/aspnet/core/client-side/libman/libman-cli?view=aspnetcore-3.1#installation" rel="nofollow noreferrer">install the LibraryManager Cli tool</a>, and then call it to <a href="https://docs.microsoft.com/en-us/aspnet/core/client-side/libman/libman-cli?view=aspnetcore-3.1#restore-library-files" rel="nofollow noreferrer">restore the JS libraries</a>? It seems more complex than I'd expect, and I've not found any examples of anyone doing this online.</p>
  
  <p>Is the other approach to include the JS libraries in source control? I did want to avoid this if possible, but if it is the standard approach, then I'm happy to do that I guess.</p>
  
  <p>Any advice, or YAML examples of ways to achieve this in Azure DevOps would be very much appreciated.</p>