sboulema / NuGetMonitor

A Visual Studio extension that checks and notifies about available updates for the installed NuGet packages for the open solution.
MIT License
16 stars 1 forks source link

Support for private repositories #47

Open KristianHebert opened 1 week ago

KristianHebert commented 1 week ago

We use Azure Devops, with a private library for internal packages. NuGetMonitor has some trouble dealing with these.

In the main window, the "Available Versions" just says "Loading...", indefinately. billede

In the dependency tree, the packages from the private repo are just omitted.

Please keep up the good work, love the extension.

tom-englert commented 1 week ago

Private reops must be listed in your nuget.config file. If they are password protected, you must also provide the credentials in the nuget.config: https://learn.microsoft.com/en-us/dotnet/core/tools/dotnet-nuget-add-source

KristianHebert commented 1 week ago

It is in the nuget.config, and it works in the built-in Visual Studio NuGet Manager.

billede

tom-englert commented 1 week ago

I'm not sure if clear-text password is supported

Visual Studio has its own internal authentication, not related to nuget.config

KristianHebert commented 1 week ago

I don't know why it's a clear text password. I just added the repo to visual studio options.

billede

tom-englert commented 1 week ago

Just follow the instructions in the link

tom-englert commented 1 week ago

See also here https://learn.microsoft.com/en-us/nuget/consume-packages/consuming-packages-authenticated-feeds#credentials-in-nugetconfig-files

KristianHebert commented 1 week ago

I cannot get it to work with the dotnet command, maybe it's because it's microsoft auth?

billede

tom-englert commented 1 week ago

NuGetMonitor is using the official NuGet Client, so when this works from the command line, it should work here, too. And maybe you have to restart VS for the changes to apply?

KristianHebert commented 1 week ago

I've been restarting VS many times in my efforts to make it work. is there a log somewhere that could help me with understanding what is wrong?

KristianHebert commented 1 week ago

According to this: https://learn.microsoft.com/en-us/azure/devops/artifacts/nuget/nuget-exe?view=azure-devops, a relatively new nuget client is needed to connect to a devops library. Could that be the issue?

KristianHebert commented 1 week ago

It seems that it sometimes loads some of the packages. billede I happen to know that the local repository is much slower than fx Nuget.org. Could that be the issue?

Also, note that it wants to "update" version 23.1.9 to version 1.2.10