Nuget.config and environment variables
Visual Studio supports reading an environment variable for the credential for a nuget source using this syntax:
<packageSourceCredentials>
<BSTordrupNuget>
<!-- This username/token only gives read access to the package source -->
<add key="Username" value="xxxxxxxx" />
<add key="ClearTextPassword" value="%PAT_READ_XXXXXXXXXXX%" />
</BSTordrupNuget>
</packageSourceCredentials>With this nuget.config in a repository, I'm prompted for credentials even though the environment variable is set. Does Rider not support this? Using version 2026.1.2
Please sign in to leave a comment.
Hello,
Thanks for contacting Rider support. Currenlty, packageSourceCredentials in NuGet.Config is not supported yet. This issue is tracked under RIDER-18949 NuGet.Config packageSourceCredentials doesn't work with NuGet UI. It has been prioritized recently, but there is no ETA to share for now. Please upvote and subscribe to receive further updates. We will update the issue once there is any progress.
Thanks,
Tom
Hi Tom
I made a comment on the case, you linked.