Paket support for Credential Providers
Support for Credential Providers needs at least Paket version
5.145.0
Paket supports Credential Providers through the same interface as NuGet.
Paket extends the definition and allows to run FDD-NetCore applications to run as well (*.dll files!), so Paket additionally searches for CredentialProvider*.dll files in the given paths. For this to work Paket needs to be able to resolve a dotnet executable from the PATH variable.
Development
For regular paket users installing Credential Providers works the same as for the NuGet client. If you have already installed Credential Providers in %LOCALAPPDATA%\NuGet\CredentialProviders paket should pick them up immediatly.
Example VSTS:
-
Download the credential providers from your VSTS Instance.
- Extract the
CredentialProvider.VSS.exefile into the above path (%LOCALAPPDATA%\NuGet\CredentialProviders) - use paket normally (without password in
paket.dependenciesand config) and enter the password in the provided dialog.
CI
There are two options to use Credential Providers in your build agent:
- Either install a global Credential Provider on your agent
- Use Tasks to provide Credential Providers as part of your build.
Example VSTS:
Install https://github.com/matthid/Paket.TeamBuildCredentials/releases/tag/0.1.1 on your TFS Add the "Setup Paket credential manager" build step before calling Paket. See more infos here
Note: Disable failing on standard error for your build step calling paket.
