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