dotnet list <SOLUTION> package --vulnerable/--outdated/--deprecated fails with Azure Artifacts Credential Provider #13308
Labels
Functionality:ListPackage
dotnet.exe list package
Priority:2
Issues for the current backlog.
Product:dotnet.exe
Resolution:NeedMoreInfo
This issue appears to not have enough info to take action
Type:Bug
WaitingForCustomer
Applied when a NuGet triage person needs more info from the OP
NuGet Product Used
dotnet.exe
Product Version
dotnet 8.0.200 (NuGet 6.9.1.3)
Worked before?
Don't know
Impact
I'm unable to use this version
Repro Steps & Context
Given a repository with the following .NET solution:
All the 3 projects have NuGet
PackageReference
s from two different NuGet feeds:Both of these feeds are listed in the nuget.config file.
I have installed the Azure Artifacts Credential Provider on the current device (tested on both Windows and Linux).
I have successfully authenticated and acquired a token for the Azure DevOps feed by using the
--interactive
option with some dotnet command; f.ex. by having rundotnet restore --interactive
once from thesrc
folder.Having performed the above step, I can now successfully run
dotnet restore
without the--interactive
option each time, since the acquired token is persisted on the device and can be reused until the token expiry:When changing
cwd
to one of the project directories, f.ex. src/MyProject1, I can now successfully run thedotnet list package --vulnerable
command successfully; authentication to the Azure DevOps feed works fine:But if I try to do the same from the solution folder (src):
It looks like the solution file in the current folder is read but authentication to the Azure DevOps feed fails - even if my persisted token should still be valid.
(FYI: If I explicitly pass the SOLUTION file path as argument the same thing happens).
Please also see bug #13307 related to unexpected behavior with the
<SOLUTION | PROJECT>
argument.Please figure out why authentication fails when using solution files but works when only using project files.
Verbose Logs
No response
The text was updated successfully, but these errors were encountered: