-
Notifications
You must be signed in to change notification settings - Fork 87
Extensibility
TODO: create a Visual Studio template for writing Library Installer extensions
It's easy to write your own providers for the Library Installer.
A basic provider allows libraries to be installed and removed. This is all you need to provide basic functionality for your provider.
Make sure the Visual Studio SDK is installed and then create a new extensibility project by creating a VSIX Project.
Install the Microsoft.Web.LibraryInstaller.Contracts NuGet package
Implement the IProviderFactory and IProvider interfaces from the NuGet package and add an [Export(IProviderFactory)]
attribute to the IProviderFactory class.
Mark the VSIX as a MEF export by opening the .vsixmanifest file and add the project as an MEF Component under Assets.
Contains the same steps as in the Basic provider. The advanced provider will give Intellisense in library.json
, update checks and other features.
Implement ILibraryCatalog and the other interfaces used by it.
Return an instance of the ILibraryCatalog from the IProvider.GetCatalog method.