5 writes to DryRun
aspire (1)
Commands\UpdateCommand.cs (1)
496DryRun = dryRun,
Aspire.Cli.Tests (4)
Projects\ProjectUpdaterNuGetConfigurationTests.cs (3)
1281DryRun = outcome == "restore" 1453DryRun = outcome is "restore" or "cancel" or "stale-config" or "stale-project", 2071DryRun = dryRun,
Projects\ProjectUpdaterTests.cs (1)
2142DryRun = dryRun,
17 references to DryRun
aspire (15)
Projects\ProjectUpdater.cs (15)
38if (context.DryRun && (!context.HasExplicitChannel || channel.Type != PackageChannelType.Explicit)) 42using var dryRunRestore = context.DryRun ? new DryRunRestoreDirectory(executionContext.AspireHomeDirectory) : null; 128if (updateSteps.Length == 0 && configuration is null && !context.DryRun) 144.Where(_ => !context.DryRun) 166foreach (var updateStep in updateSteps.Where(step => !context.DryRun && step is not PackageUpdateStep)) 179if (!context.DryRun && !await interactionService.PromptConfirmAsync(UpdateCommandStrings.PerformUpdatesPrompt, context.ConfirmBinding, cancellationToken: cancellationToken)) 226var selectedPathForNewNuGetConfigFile = context.DryRun 257if (context.DryRun) 278var requiresRestore = candidateSteps.Length > 0 || configurationCandidate is not null || context.DryRun; 292bypassCaches: context.DryRun, cancellationToken); 303context.DryRun ? UpdateCommandStrings.DryRunValidating : UpdateCommandStrings.ApplyingUpdates, 325context.DryRun ? UpdateCommandStrings.DryRunValidating : UpdateCommandStrings.ApplyingUpdates, 340if (requiresRestore && (!hasExplicitChannelPolicy || context.DryRun)) 390if (context.DryRun) 490if (context.DryRun)
Aspire.Cli.Tests (2)
Commands\UpdateCommandRepositoryToolsTests.cs (1)
50Assert.True(context.DryRun);
Commands\UpdateCommandTests.cs (1)
2924Assert.Equal(dryRun, context.DryRun);