[Bug]: PackageSourceProvider.UpdatePackageSource does not enable a previously disabled source. #12008
Labels
Area:Settings
NuGet.Config and related issues
Category:Quality Week
Issues that should be considered for quality week
Functionality:SDK
The NuGet client packages published to nuget.org
Priority:2
Issues for the current backlog.
Triage:NeedsMoreInfo
Type:Bug
NuGet Product Used
NuGet SDK
Product Version
5.10.0
Worked before?
No response
Impact
It's more difficult to complete my work
Repro Steps & Context
In class
NuGet.Configuration.PackageSourceProvider
, the method:does not apply the configuration changes required when
source.IsEnabled
is being updated fromfalse
totrue
(whenupdateEnabled
istrue
, indicating that the update should be applied). I suspect that the problem is here:where
sourceToUpdate.Key
should be used as the last argument. Note thatsourceToUpdate.ElementName
is always the constantConfigurationConstants.Add
, which does not seem to be what's wanted here.Verbose Logs
No response
The text was updated successfully, but these errors were encountered: