be prompted with a device flow url which will allow you to authenticate the repository, o
fetch the credential
or if dotnet SDK is not yet installed (as explained here) get an error message.
Indeed, as the environment variable NUGET_PLUGIN_PATHS is not set, we should use the default dll (option 1b in code of Get-CredsFromCredentialProvider).
The function does nothing, because option 1b fails.
My opinion
The quotes in the definition of path variable of option 1b should be removed, because they are useless and cause the Test-Path command to return $false all the time.
Thanks @clientFDJ for the detailed repro/system information and for opening the issue. Also apologize for the delayed response! We were able to reproduce this and @alerickson is looking into a fix.
Steps to reproduce
Expected behavior
We should either :
Indeed, as the environment variable NUGET_PLUGIN_PATHS is not set, we should use the default dll (option 1b in code of Get-CredsFromCredentialProvider).
Actual behavior
The function does nothing, because option 1b fails.
My opinion
The quotes in the definition of path variable of option 1b should be removed, because they are useless and cause the Test-Path command to return $false all the time.
For example option 2 defines credProviderPath like this :
Environment data