Skip to content

Commit 2e4fdab

Browse files
Copilotaortiz-msft
andcommitted
Fix: Move ConfigureNewPackageSourceMappings after ExecuteActionsAsync
Co-authored-by: aortiz-msft <[email protected]>
1 parent 9e2bfcb commit 2e4fdab

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

src/NuGet.Clients/NuGet.PackageManagement.UI/Actions/UIActionEngine.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -474,6 +474,10 @@ await _lockService.ExecuteNuGetOperationAsync(async () =>
474474

475475
if (!cancellationToken.IsCancellationRequested)
476476
{
477+
await projectManagerService.ExecuteActionsAsync(
478+
actions,
479+
cancellationToken);
480+
477481
PreviewResult? sourceMappingPreviewResult = results.SingleOrDefault(result => result.NewSourceMappings != null);
478482
PackageSourceMappingUtility.ConfigureNewPackageSourceMappings(
479483
userAction,
@@ -483,10 +487,6 @@ await _lockService.ExecuteNuGetOperationAsync(async () =>
483487
out countCreatedTopLevelSourceMappings,
484488
out countCreatedTransitiveSourceMappings);
485489

486-
await projectManagerService.ExecuteActionsAsync(
487-
actions,
488-
cancellationToken);
489-
490490
string[] projectIds = actions
491491
.Select(action => action.ProjectId)
492492
.Distinct()

0 commit comments

Comments
 (0)