29 Home
Jimmy Lewis редактировал(а) эту страницу 2020-06-02 21:22:12 -07:00
Этот файл содержит неоднозначные символы Юникода!

Этот файл содержит неоднозначные символы Юникода, которые могут быть перепутаны с другими в текущей локали. Если это намеренно, можете спокойно проигнорировать это предупреждение. Используйте кнопку Экранировать, чтобы подсветить эти символы.

What is Library Manager (LibMan)?

LibMan is a tool that helps you download common libraries from the Internet to use in your web project.

Library Manager (“LibMan” for short) is Visual Studios client-side library acquisition tool. It's goal is to provide a lightweight, simple mechanism that helps users find and fetch common library files from external sources (such as CDNJS or UnPkg) and place them in the right location within your web application.

Library Manager in Visual Studio 2017

Why use LibMan?

  • If your project does not require additional tools (like Node, npm, Gulp, Grunt, WebPack, etc) and you simply want to acquire a couple of files, then LibMan might be for you.
  • LibMan lets you specify exactly where the files should be placed inside your project. (No additional build tasks or manual file copying required!)
  • LibMan provides the benefit of a much smaller footprint in your web project as it only downloads the files you need. To learn more about the benefits of LibMan, check out this clip of Mads Kristensen talking about the initial prototype in his talk at Microsoft Build 2017.

What LibMan is not

LibMan is not a package management system. If youre happily using npm/yarn/(or something else), we encourage you to continue doing so. LibMan was not developed as a replacement for these tools.

How to Acquire and Install

LibMan tooling comes as part of the Web Development workload in Visual Studio 2017.
Download Visual Studio 2017 and choose the "Web Development" workload during installation (or modify an existing instance of Visual Studio 2017).

The LibMan Command Line Interface (DotNet CLI tool) can be used separately and can be downloaded from NuGet.

How to use Library Manager (LibMan)

See the following pages for information on how to use LibMan in the various supported scenarios.

Reference

LibMan Manifest (libman.json)

LibMan CLI

Providers

LibMan offers multiple CDNs to use as providers. For more information, see the Providers documentation.

Other References