Connecting to an Azure Devops private NuGet in vs code

We ended up using https://github.com/Microsoft/artifacts-credprovider for VS Code. It works really well. Just follow the steps to install the Microsoft.NuGet.CredentialProvider. Afterwards you should be able to restore the packages with the command "dotnet restore --interactive".


How can I connect to a private NuGet feed on Azure Devops with vs code without saving credentials in a file?

I am afraid you have to save the credentials in nuget.config file at this moment.

When you log in Visual Studio and connect to the feed with credentials, Visual Studio will verify the credential and save it in the Visual Studio with login credentials:

enter image description here

But there is no such sign option for Visual Studio code. So, we have to put credentials in the nuget.config file.

Besides, there is a user voice about it, you can vote and add your comments for this feedback. When there are enough communities vote and add comments for this feedback, the product team member will take this feedback seriously.:

Be able to use VSTS Package Manager with Visual Studio Code (VS Code)

Hope this helps.