pcislo / vscode-nuget-gallery

MIT License
64 stars 19 forks source link

Custom NuGet Sources gives "Error" #104

Open lisenz opened 1 year ago

lisenz commented 1 year ago

Hi, I'm trying to setup a custom repository in NuGet Gallery to use my own preview packages, but no matter how I configure the source it keeps showing "Error" when I select that resource...

Tried with {"name": "doctorz.top","url": "https://nuget.doctorz.top/api/v2"} but it can not work.

eg: image

Is there a way to do this?

terryaney commented 8 months ago

Are credentials required? I've found a workaround for TFS hosted feeds by adding this environment variable:

VSS_NUGET_EXTERNAL_FEED_ENDPOINTS={"endpointCredentials": [{"endpoint":"https://feedurl/nuget/v3/index.json", "password":"usertoken"}]}

I'm hoping it would just use the 'credential manager' but it doesn't seem to do it. Only that environment variable made it work.

Jomontalvo commented 8 months ago

Hi: I get the same error adding Telerik source in VS Code for Mac, the source need credentials and I try this json: {"name": "Telerik","url": "https://nuget.telerik.com/v3/index.json", "authorizationHeader":"Basic xxxxx=="}

¿Anny suggest?

pcislo commented 5 months ago

Credentials should be provided to Credentials Provider Manager link. I will test this sources and return with some examples of the configuration.