Перейти к файлу
Phil Allen e639b87663
Merge pull request #756 from jimmylewis/fileMapping
Implement support for "fileMappings"
2024-09-30 13:49:50 -07:00
.github
Localize
art
azure-pipelines Add monthly build (#765) 2024-09-18 13:36:11 -07:00
build
common/tools/VsctToXliff
setup
src Merge branch 'main' into fileMapping 2024-09-26 09:04:30 -07:00
test Merge branch 'main' into fileMapping 2024-09-26 09:04:30 -07:00
.editorconfig
.gitattributes
.gitignore
CHANGELOG.md
CODE-OF-CONDUCT.md
Directory.Build.props
Directory.Build.targets
Directory.Packages.props Update package versions (#766) 2024-09-18 15:49:12 -07:00
Install-dotnet.ps1
LICENSE.txt
LibraryManager.Settings.targets
LibraryManager.sln
NOTICE.txt
README.md
SECURITY.md Add SECURITY.md 2024-09-10 16:51:45 -07:00
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

Telemetry

The Visual Studio experience for Library Manager follows all of the settings for telemetry from Visual Studio.

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

Trademarks

This project may contain trademarks or logos for projects, products, or services. Authorized use of Microsoft trademarks or logos is subject to and must follow Microsoft's Trademark & Brand Guidelines. Use of Microsoft trademarks or logos in modified versions of this project must not cause confusion or imply Microsoft sponsorship. Any use of third-party trademarks or logos are subject to those third-party's policies.