/PackageInstaller

A Visual Studio extension

Primary LanguageC#OtherNOASSERTION

Package Installer

Build status

Download the extension at the VS Gallery or get the nightly build


A Visual Studio extension that makes it easy and fast to install Bower, npm, Yarn, JSPM, TSD, Typings and NuGet packages.

See the changelog for changes and roadmap.

Features

  • Supports Bower, npm, Yarn, JSPM, TSD, Typings and NuGet
  • Works for all project types including ASP.NET 5, WebForms, Website projects and more
  • Intellisense for package names and versions
  • Automatically creates package.json or bower.json if missing
  • Automatically creates gulp-/grunt-/brocfile.js if they are being installed using npm
  • Selects the last used package manager
  • Customize arguments passed to each package manager

Install a package

Simply right-click the project and select "Quick Install Package..." to pop open the installer dialog box.

Context menu

Choose package manager

Select which package manager to use.

auto completion

You choice is remembered for next time you open the dialog.

Auto completion

You get full auto completion for all package names available in the Bower, npm, Yarn, JSPM, TSD, Typings and NuGet registries.

auto completion

Also for version numbers for both NuGet, Bower, npm and Yarn:

auto completion

Custom arguments

You can specify any custom arguments to the package managers that support it.

Dialog Arguments

The default arguments for each package manager can be set in the Options dialog.

OptionsOptions

Typescript typings

In order to use TSD, it must be installed globally using npm.

Open a console and type the following command:

npm install tsd -g

Now TSD is installed globally on the system and this extension can use it.

The same goes for the Typings manager. It can be installed in the same way:

npm install typings -g

bower.json / package.json

You can install packages without having set up Bower, JSPM, npm or Yarn.

This extension will automatically create the JSON configuration files, so you don't have to worry about it.

Keyboard shortcut

The fastest way to display the dialog is to use the keyboard shortcut Shift+Alt+0.

Contribute

Check out the contribution guidelines if you want to contribute to this project.

For cloning and building this project yourself, make sure to install the Extensibility Tools 2015 extension for Visual Studio which enables some features used by this project.

License

Apache 2.0