Cannot connect to a private nuget server (Azure DevOps)
See original GitHub issueI have tried to run dotnet outdated
but it does not work on my computer.
I have dotnet SDK 5.0.100 and the latest version of the tool 3.1.0. I also have the latest version of Microsoft.NuGet.CredentialProvider
Errors occurred while analyzing dependencies for some of your projects. Are you sure you can connect to all your configured NuGet servers? Unable to find DOTNET_HOST_PATH environment variable. If you use credential providers for your NuGet sources you need to have this set to the path to the
dotnet
executable.
I can set manually DOTNET_HOST_PATH but it still cannot connect to my private nuget source server :
$Env:DOTNET_HOST_PATH = "$env:ProgramFiles\dotnet\dotnet.exe"
Errors occurred while analyzing dependencies for some of your projects. Are you sure you can connect to all your configured NuGet servers?
Nuget server was added with the dotnet nuget add source
command (with username and PAT token as password).
The dotnet command dotnet list package --outdated
works well.
Issue Analytics
- State:
- Created 3 years ago
- Reactions:5
- Comments:15 (3 by maintainers)
Top GitHub Comments
On my private vsts agent, dotnet executable is located under
/usr/bin/dotnet
So you may be able to hard set the env variable, that should fix it.The workaround i found was to:
This way the credentials provider is never needed. Sure it’s not the best possible solution but it works for now.