Code Monkey home page Code Monkey logo

Comments (6)

doggy8088 avatar doggy8088 commented on July 24, 2024 20

I wrote a very detailed tutorial about this: https://blog.miniasp.com/post/2019/01/16/Setup-Azure-Artifacts-NuGet-Feeds.aspx

from artifacts-credprovider.

doggy8088 avatar doggy8088 commented on July 24, 2024 3

@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.

from artifacts-credprovider.

satbai avatar satbai commented on July 24, 2024 1

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

from artifacts-credprovider.

rhumborl avatar rhumborl commented on July 24, 2024 1

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

from artifacts-credprovider.

doggy8088 avatar doggy8088 commented on July 24, 2024

I was misunderstanding the "PAT" means. This are wrong steps.

Also, I realized one thing: This VSS_NUGET_EXTERNAL_FEED_ENDPOINTS environment variable doesn't apply NuGet.exe tool. Only for dotnet tool (.NET CLI).

from artifacts-credprovider.

csurfleet avatar csurfleet commented on July 24, 2024

@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"

from artifacts-credprovider.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.