Register-PackageSource: Doesn't save credentials in `nuget.config` file

Viewed 47

When I enter …

Register-PackageSource -Name 'Test' -Location 'https://artifactory.contoso.com/artifactory/api/nuget/test/' -ProviderName 'NuGet' -Credential (Get-Credential) -ForceBootstrap -Trusted

… no credentials are getting saved to the nuget.config file.

What do I need to change to have this PowerShell command save the provided credentials along?

0 Answers
Related