Loading nuget package that requires a credentials provider for authentication #4199
Unanswered
BradleyJinks
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello,
Does anyone know how to load a package from an authenticated feed where a credentials provider manages the authentication?
We use CodeArtifact to store all our custom Nuget packages and as an upstream source to Nuget. The credentials for this can be managed in a provider called
AWS.CodeArtifact.NuGet.CredentialProvider
which works great in tools like Rider.The issue we are having is getting cake to use the credentials provider when trying to load a package without hardcoding some static credentials in a global user or project nuget.config.
Example:
Has anyone encountered this issue and managed to get it working?
I have tried the below but first, you get
Could not locate nuget.exe
error so set the value to true to installNuGet.CommandLine
. Once this is installed cake does pull theMyCoolPackage
(getting the credentials from the provider) but fails just after its pulled with an error ofline #1: Value cannot be null. (Parameter 'path')
Beta Was this translation helpful? Give feedback.
All reactions