Skip to content

Fix dnx not authenticating for private feeds#53151

Open
robertcoltheart wants to merge 5 commits intodotnet:mainfrom
robertcoltheart:bug/fix-tool-execute-using-credentials
Open

Fix dnx not authenticating for private feeds#53151
robertcoltheart wants to merge 5 commits intodotnet:mainfrom
robertcoltheart:bug/fix-tool-execute-using-credentials

Conversation

@robertcoltheart
Copy link

Fixes #51375

For dnx execution (dotnet tool exec), if the package source is authenticated the previous method of passing an override source meant that the credentials are lost, since this is the equivalient of passing --source https://mysource and ignoring any config in NuGet.config. We need to pass the explicit source for dnx because we confirm with the user that we will be downloading from a particular source (which may be authenticated).

Copy link

@iamteamstar iamteamstar left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Despite this complexity, congratulations if you can solved the error.

@baronfel
Copy link
Member

baronfel commented Mar 2, 2026

Thanks for the analysis on the linked issue and this PR - I think it overlaps at least partially with a recently-merged change in #52787 - can you take a look and align your changes with this one to prevent merge conflicts?

@robertcoltheart
Copy link
Author

robertcoltheart commented Mar 2, 2026

@baronfel Not sure I understand the branch targeting process - the linked PR hasn't been merged into main yet, should I wait for this to be back-merged to main before fixing this PR? Or should I re-target this PR to the release/10.0.3xx branch instead?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[10.0.101] dnx/dotnet tool exec not Authenticating on Private NuGet feed

3 participants