How to use Visual Studio Team services as a NuGet feed in LINQPad

I use LINQPad 5 and VSTS (visual studio services) I have a NuGet channel (v3) in VSTS and I would like to use packages from there (private) in LINQPad

I tried using the access token from VSTS as the NuGet password in LINQPad I tried to put the VSTS credential provider for nuget in AppData \ Local \ NuGet \ CredentialProviders
I tried to put the VSTS credential provider for nuget in AppData \ Local \ LINQPad \ NuGet \ CredentialProviders
I tried using my VSTS username and password as nuget credentials

How it's done? Is there a bug in LINQPad? Is this not yet supported?

+4
source share
2 answers

We managed to get it to work using the vu nuget API:

/nuget/v2

instead:

/nuget/v3/index.json

Just put the personal access token in the password text box in the LINQPad Package Sources dialog box.

+11
source

My current way to make it work as follows:

  • use nuget v2 tape https://<instance>.pkgs.visualstudio.com/_packaging/<feed>/nuget/v2
  • enter the personal access token in the password text box
    • make sure the access token is still valid ...
  • restart linqpad if in doubt! Some old credentials seem to be cached sometimes (e.g. expired PAT)
  • try disabling other channels so that you have only one channel turned on
  • sometimes it helps: with advanced enable the use of an outdated search engine (v2)
0

Source: https://habr.com/ru/post/1660337/


All Articles