dotnet-outdated: Cannot connect to a private nuget server (Azure DevOps)
I 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
dotnetexecutable.
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.
About this issue
- Original URL
- State: open
- Created 4 years ago
- Reactions: 5
- Comments: 18 (3 by maintainers)
On my private vsts agent, dotnet executable is located under
/usr/bin/dotnetSo you may be able to hard set the env variable, that should fix it.