Перейти к файлу
Jimmy Lewis 4b79145702 Use OperationGoalState for intermediate steps in Install and GenerateGoalState 2024-05-19 01:21:20 -07:00
.github
Localize
art
azure-pipelines Remove OneLocBuildPat 2024-04-30 12:49:51 -07:00
build
common/tools/VsctToXliff
setup
src Use OperationGoalState for intermediate steps in Install and GenerateGoalState 2024-05-19 01:21:20 -07:00
test Use OperationGoalState for intermediate steps in Install and GenerateGoalState 2024-05-19 01:21:20 -07:00
.editorconfig
.gitattributes
.gitignore
CHANGELOG.md
CODE-OF-CONDUCT.md
Directory.Build.props
Directory.Build.targets
Directory.Packages.props Followup: Fully remove references (#750) 2024-05-10 11:38:51 -07:00
Install-dotnet.ps1
LICENSE.txt
LibraryManager.Settings.targets
LibraryManager.sln Add tests for OperationResult 2024-04-22 13:12:37 -07:00
README.md
SECURITY.md
azure-pipelines.yml
build.cmd
global.json
nuget.config
version.json

README.md

Microsoft Library Manager

Install and consume 3rd-party client-side libraries with ease.

Build Status

Reasons to use LibMan

  1. For apps not currently using another package manager
  2. For projects where you think Bower and npm are overkill
  3. For developers that don't want to use Bower/Yarn or npm
  4. For developers that value simplicity in their tools
  5. For using custom or private packages/files
  6. For orchestrating file placement within your project

Reasons NOT to use LibMan

  1. Developer/team likes using tools such Bower, Yarn or npm
  2. For apps that uses WebPack or Browserify for module loading/bundling

Features

  • Add any library from cdnjs.com, jsdelivr.com, or unpkg.com
  • Add any file from file system, network share or remote URL
  • Only add the file(s) you need
  • Can install any file into any folder in your project/solution
  • Very fast

Installation

  • Fully integrated into Visual Studio 2017 and newer

  • Available as an add-in for Visual Studio for Mac

    • From the main menu, open the Extensions Manager dialog.
    • Select the Gallery tab.
    • Expand IDE extensions.
    • Select the Library Manager addin
    • Click the Refresh button if the addin is not visible.
    • Click Install… to install the addin.
    • Restart Visual Studio for Mac.

    Please read the LibMan support in Visual Studio for Mac blog post for more details

  • Available as a dotnet global tool - Microsoft.Web.LibraryManager.Cli

Getting started

Right-click any web project in Solution Explorer and hit Manage Client-side Libraries....

Context menu

This will create a libman.json file in the root of the project.

libman.json

Context menu

Right-click libman.json in Solution Explorer to access commands that help managing the libraries.

context menu libman.json

Intellisense

Edit the libman.json file to install libraries. Every time the file is saved, Visual Studio will install/restore the packages.

libman.json

See libman.json reference for more information.

Light bulbs

Inside libman.json there are light bulbs that show up with helpful commands.

Light bulbs

Road map and release notes

See the CHANGELOG for road map and release notes

Feedback

Check out the contributing page to see the best places to log issues and start discussions.

Reporting Security Issues

Please refer to SECURITY.md