-
Notifications
You must be signed in to change notification settings - Fork 705
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to set VSS_NUGET_EXTERNAL_FEED_ENDPOINTS correctly #53
Comments
I was misunderstanding the "PAT" means. This are wrong steps. Also, I realized one thing: This |
Please also note that CredentialProvider.VSS.exe is a different cred provider. To use this one you can use one of these scripts to install it to the correct location on your machine. Then you should be able to use the VSS_NUGET_EXTERNAL_FEED_ENDPOINTS environment variable. You can create a PAT in your Azure DevOps account https://dev.azure.com//_usersSettings/tokens |
I wrote a very detailed tutorial about this: https://blog.miniasp.com/post/2019/01/16/Setup-Azure-Artifacts-NuGet-Feeds.aspx |
@doggy8088 Any chance of a version in English? I've tried translation tools but not getting anything useful. I've tried all this in many permutations over weeks now and I still get errors CURLing from the container to the feed - "The user '' is not authorized to view this resource" |
@csurfleet Please open PowerShell and run the following command: $env:VSS_NUGET_EXTERNAL_FEED_ENDPOINTS = '{"endpointCredentials": [{"endpoint":"https://{YourOrg}.pkgs.visualstudio.com/_packaging/{YourProject}/nuget/v3/index.json", "password":"[PAT]"}]}'
dotnet restore Then you can pass the authentication. |
For anyone checking this issue and wanting to translate https://blog.miniasp.com/post/2019/01/16/Setup-Azure-Artifacts-NuGet-Feeds.aspx, I did it in Chrome, but needed to manually set the source language to "Chinese (simplified)" as it was not automatically detected |
I'm trying to set
VSS_NUGET_EXTERNAL_FEED_ENDPOINTS
environment variable but it looks like no effect.Here are the steps to reproduce my problem.
Machine A:
Install
NuGet.exe
andCredentialProvider.VSS.exe
Create new
nuget.config
fileAdd my Azure Artifacts NuGet feed
Try pass the authenticate
Generate PAT by the following command. Copy the "Password" property's value as PAT.
Machine B:
Install
NuGet.exe
andCredentialProvider.VSS.exe
Create new
nuget.config
fileAdd my Azure Artifacts NuGet feed
Setup
VSS_NUGET_EXTERNAL_FEED_ENDPOINTS
environment variable. The [PAT] is what I generated at Machine A.Try pass the authenticate but this doesn't read
VSS_NUGET_EXTERNAL_FEED_ENDPOINTS
environment variable!I expected the pass authentication because I already set correct
VSS_NUGET_EXTERNAL_FEED_ENDPOINTS
environment variable! Am I do something wrong?The text was updated successfully, but these errors were encountered: