MyGet Credential Provider for Visual Studio 2017
The MyGet Credential Provider for Visual Studio provides an easy way to connect to secured NuGet package sources hosted on MyGet.
It is a Visual Studio extension that relies on NuGet's credential provider extensibility, so it requires the NuGet Package Manager to be available in your Visual Studio workload.
The benefit of using the MyGet Credential Provider for Visual Studio is three-fold:
- No need to know or learn about NuGet.Config files or nuget.exe commands to modify them
- No need to use API keys (or access tokens) when working within Visual Studio
- You can authenticate with your MyGet profile (using the identity provider of your choice, or as configured by your MyGet administrator), and remain authenticated for the duration of your Visual Studio session
The MyGet Credential Provider for Visual Studio can be installed from within Visual Studio using the Visual Studio Extension Manager, available under Tools > Extensions and Updates....
Alternatively, you can download the VSIX from the Visual Studio Gallery.
The below screenshot shows the credential provider in action: when NuGet tries to connect to a secured MyGet package source, an OAuth flow is initiated and MyGet will show you a prompt to authenticate against the package source. You can choose to authenticate using any identity provider available (as configured in the target MyGet tenant), or simply provide a username and password for your MyGet account.
MyGet Credential Provider for Visual Studio 2015 ("Experimental")
Why experimental? Because we had to create a custom build version of the NuGet Package Manager extension for Visual Studio 2015. This custom build is just a few commits newer than the latest official release of the NuGet VSIX and includes the Visual Studio Credential Provider extensibility as documented here.
To install the MyGet Credential Provider for Visual Studio 2015:
- Uninstall the NuGet Package Manager extension from Visual Studio 2015 (Tools > Extensions and Updates..., look for NuGet Package Manager and hit Uninstall)
- Install this custom build of the NuGet Package Manager, available for download on MyGet
- Install the MyGet credential provider for Visual Studio 2015, available for download on MyGet.