93 references to UpdateCommandStrings
aspire (85)
Commands\UpdateCommand.cs (32)
44
private static readonly OptionWithLegacy<FileInfo?> s_appHostOption = new("--apphost", "--project",
UpdateCommandStrings
.ProjectArgumentDescription);
47
Description =
UpdateCommandStrings
.SelfOptionDescription
51
Description =
UpdateCommandStrings
.YesOptionDescription,
56
Description =
UpdateCommandStrings
.MigrateOptionDescription
60
Description =
UpdateCommandStrings
.NuGetConfigDirOptionDescription
77
: base("update",
UpdateCommandStrings
.Description, services)
106
?
UpdateCommandStrings
.ChannelOptionDescriptionWithStaging
107
:
UpdateCommandStrings
.ChannelOptionDescription
115
?
UpdateCommandStrings
.QualityOptionDescriptionWithStaging
116
:
UpdateCommandStrings
.QualityOptionDescription,
163
InteractionService.DisplayMessage(KnownEmojis.Information,
UpdateCommandStrings
.DotNetToolSelfUpdateMessage);
174
InteractionService.DisplayMessage(KnownEmojis.Information,
UpdateCommandStrings
.NpmSelfUpdateMessage);
249
UpdateCommandStrings
.CheckingForUpdates,
274
UpdateCommandStrings
.NoChannelFoundMatching,
331
UpdateCommandStrings
.SelectChannelPrompt,
383
UpdateCommandStrings
.UpdateCliAfterProjectUpdatePrompt,
392
InteractionService.DisplayMessage(KnownEmojis.Information,
UpdateCommandStrings
.DotNetToolSelfUpdateMessage);
400
InteractionService.DisplayMessage(KnownEmojis.Information,
UpdateCommandStrings
.NpmSelfUpdateMessage);
435
UpdateCommandStrings
.NoAppHostFoundUpdateCliPrompt,
501
InteractionService.DisplayMessage(KnownEmojis.Information,
UpdateCommandStrings
.PendingMigrationsHeader);
507
InteractionService.DisplaySubtleMessage(
UpdateCommandStrings
.PendingMigrationsHint);
551
InteractionService.DisplayMessage(KnownEmojis.Warning,
UpdateCommandStrings
.MigrationApplyFailedWarning);
581
UpdateCommandStrings
.UpdateCliBeforeGuestProjectUpdatePrompt,
593
InteractionService.DisplayMessage(KnownEmojis.Information,
UpdateCommandStrings
.DotNetToolSelfUpdateMessage);
595
InteractionService.DisplayMessage(KnownEmojis.Information,
UpdateCommandStrings
.ProjectUpdateSkippedAfterCliUpdateMessage);
602
InteractionService.DisplayMessage(KnownEmojis.Information,
UpdateCommandStrings
.NpmSelfUpdateMessage);
604
InteractionService.DisplayMessage(KnownEmojis.Information,
UpdateCommandStrings
.ProjectUpdateSkippedAfterCliUpdateMessage);
611
InteractionService.DisplayMessage(KnownEmojis.Information,
UpdateCommandStrings
.ProjectUpdateSkippedAfterCliUpdateMessage);
655
InteractionService.DisplayMessage(KnownEmojis.Information,
UpdateCommandStrings
.NixSelfUpdateMessage);
772
UpdateCommandStrings
.ExtractingNewCli,
780
InteractionService.DisplayMessage(KnownEmojis.Package,
UpdateCommandStrings
.ExtractedNewCli);
870
string.Format(CultureInfo.CurrentCulture,
UpdateCommandStrings
.NoWritePermissionToInstallDirectory, installDir));
Projects\GuestAppHostProject.cs (6)
1476
UpdateCommandStrings
.AnalyzingProjectStatus,
1535
_interactionService.DisplayMessage(KnownEmojis.CheckMarkButton,
UpdateCommandStrings
.ProjectUpToDateMessage);
1552
if (!await _interactionService.PromptConfirmAsync(
UpdateCommandStrings
.PerformUpdatesPrompt, context.ConfirmBinding, cancellationToken: cancellationToken))
1578
UpdateCommandStrings
.RegeneratingSdkCode,
1598
_interactionService.DisplayMessage(KnownEmojis.Package,
UpdateCommandStrings
.RegeneratedSdkCode);
1601
_interactionService.DisplaySuccess(
UpdateCommandStrings
.UpdateSuccessfulMessage);
Projects\ProjectUpdater.cs (46)
37
var (updateSteps, fallbackUsed) = await interactionService.ShowStatusAsync(
UpdateCommandStrings
.AnalyzingProjectStatus, () => GetUpdateStepsAsync(projectFile, channel, cancellationToken));
42
interactionService.DisplayMessage(KnownEmojis.CheckMarkButton,
UpdateCommandStrings
.ProjectUpToDateMessage);
83
interactionService.DisplayMessage(KnownEmojis.Warning, $"[yellow]{
UpdateCommandStrings
.FallbackParsingWarning}[/]", allowMarkup: true);
87
if (!await interactionService.PromptConfirmAsync(
UpdateCommandStrings
.PerformUpdatesPrompt, context.ConfirmBinding, cancellationToken: cancellationToken))
98
throw new ProjectUpdaterException(
UpdateCommandStrings
.FailedDiscoverNuGetConfig);
118
_ => throw new InvalidOperationException(
UpdateCommandStrings
.UnexpectedCodePath)
146
promptText:
UpdateCommandStrings
.WhichDirectoryNuGetConfigPrompt,
161
UpdateCommandStrings
.ApplyingUpdates,
166
interactionService.DisplaySubtleMessage(string.Format(CultureInfo.InvariantCulture,
UpdateCommandStrings
.ExecutingUpdateStepFormat, updateStep.Description));
190
UpdateCommandStrings
.RestoringPackagesAfterUpdate,
197
throw new ProjectUpdaterException(string.Format(CultureInfo.InvariantCulture,
UpdateCommandStrings
.FailedToRestoreAfterUpdateFormat, projectFile.FullName));
205
interactionService.DisplaySuccess(
UpdateCommandStrings
.UpdateSuccessfulMessage);
226
var appHostAnalyzeStep = new AnalyzeStep(
UpdateCommandStrings
.AnalyzeAppHost, () => AnalyzeAppHostAsync(context, cancellationToken));
259
UpdateCommandStrings
.UpdateChannelStepDescriptionFormat,
260
existingChannel ??
UpdateCommandStrings
.ChannelNonePlaceholder,
267
UpdateCommandStrings
.UpdatePackageFormat,
325
throw new ProjectUpdaterException(string.Format(CultureInfo.InvariantCulture,
UpdateCommandStrings
.FailedFetchItemsAndPropertiesFormat, projectFile.FullName));
368
var appHostSdkAnalyzeStep = new AnalyzeStep(
UpdateCommandStrings
.AnalyzeAppHostSdk, () => AnalyzeAppHostSdkAsync(context, cancellationToken));
371
var appHostProjectAnalyzeStep = new AnalyzeStep(string.Format(CultureInfo.InvariantCulture,
UpdateCommandStrings
.AnalyzeProjectFormat, context.AppHostProjectFile.FullName), () => AnalyzeProjectAsync(context.AppHostProjectFile, context, cancellationToken));
395
throw new ProjectUpdaterException(string.Format(CultureInfo.InvariantCulture,
UpdateCommandStrings
.NoPackageFoundFormat, packageId, context.Channel.Name));
398
logger.LogWarning(
UpdateCommandStrings
.PackageNotFoundInChannelWarningFormat, packageId, context.Channel.Name);
441
string.Format(CultureInfo.InvariantCulture,
UpdateCommandStrings
.UpdatePackageFormat, "Aspire.AppHost.Sdk", sdkVersion ?? "unknown", latestSdkPackage?.Version),
463
UpdateCommandStrings
.RemovedObsoleteAppHostPackage,
490
UpdateCommandStrings
.RemovedObsoleteAppHostPackage,
673
UpdateCommandStrings
.MigratedToNewSdkFormat, package.Version));
678
interactionService.DisplaySubtleMessage(
UpdateCommandStrings
.RemovedObsoleteAppHostPackage);
702
throw new ProjectUpdaterException(string.Format(CultureInfo.InvariantCulture,
UpdateCommandStrings
.CouldNotFindRootProjectElementFormat, projectFile.FullName));
720
throw new ProjectUpdaterException(string.Format(CultureInfo.InvariantCulture,
UpdateCommandStrings
.CouldNotFindSdkElementFormat, projectFile.FullName));
975
var referencedProjectPath = projectReference.GetProperty("FullPath").GetString() ?? throw new ProjectUpdaterException(
UpdateCommandStrings
.ProjectReferenceNoFullPath);
977
context.AnalyzeSteps.Enqueue(new AnalyzeStep(string.Format(CultureInfo.InvariantCulture,
UpdateCommandStrings
.AnalyzeProjectFormat, referencedProjectFile.FullName), () => AnalyzeProjectAsync(referencedProjectFile, context, cancellationToken)));
986
var packageId = packageReference.GetProperty("Identity").GetString() ?? throw new ProjectUpdaterException(
UpdateCommandStrings
.PackageReferenceNoIdentity);
1066
string.Format(CultureInfo.InvariantCulture,
UpdateCommandStrings
.UpdatePackageFormat, packageId, packageVersion, latestPackage.Version),
1102
string.Format(CultureInfo.InvariantCulture,
UpdateCommandStrings
.UpdatePackageFormat, packageId, currentVersion, latestPackage.Version),
1219
throw new ProjectUpdaterException(string.Format(CultureInfo.InvariantCulture,
UpdateCommandStrings
.CouldNotFindPackageVersionInDirectoryPackagesProps, packageId, directoryPackagesPropsFile.FullName));
1247
throw new ProjectUpdaterException(string.Format(CultureInfo.InvariantCulture,
UpdateCommandStrings
.FailedUpdatePackageReferenceFormat, package.Id, projectFile.FullName));
1259
interactionService.DisplayPlainText(
UpdateCommandStrings
.NoChangesDetectedInNuGetConfig);
1266
UpdateCommandStrings
.ApplyChangesToNuGetConfig,
1402
interactionService.DisplayPlainText(string.Format(CultureInfo.InvariantCulture,
UpdateCommandStrings
.AddedFeedFormat, feed.Value));
1409
interactionService.DisplayPlainText(string.Format(CultureInfo.InvariantCulture,
UpdateCommandStrings
.MappingAddedFormat, pattern));
1418
interactionService.DisplayPlainText(string.Format(CultureInfo.InvariantCulture,
UpdateCommandStrings
.RemovedFeedFormat, feed.Value));
1425
interactionService.DisplayPlainText(string.Format(CultureInfo.InvariantCulture,
UpdateCommandStrings
.RetainedFeedFormat, feed.Value));
1433
interactionService.DisplayPlainText(string.Format(CultureInfo.InvariantCulture,
UpdateCommandStrings
.MappingAddedFormat, pattern));
1439
interactionService.DisplayPlainText(string.Format(CultureInfo.InvariantCulture,
UpdateCommandStrings
.MappingRemovedFormat, pattern));
1453
interactionService.DisplayPlainText(string.Format(CultureInfo.InvariantCulture,
UpdateCommandStrings
.MappingRetainedFormat, pattern));
1537
? $"[grey]{
UpdateCommandStrings
.ChannelNonePlaceholder.EscapeMarkup()}[/]"
1545
? $"[grey]{
UpdateCommandStrings
.SdkVersionUnknownPlaceholder.EscapeMarkup()}[/]"
Resources\UpdateCommandStrings.Designer.cs (1)
36
resourceMan = new ResourceManager("Aspire.Cli.Resources.UpdateCommandStrings", typeof(
UpdateCommandStrings
).Assembly);
Aspire.Cli.Tests (8)
Commands\UpdateCommandTests.cs (6)
59
Assert.Equal(
UpdateCommandStrings
.ChannelOptionDescriptionWithStaging, channelOption.Description);
1011
Assert.Contains(interactionService.DisplayedMessages, m => m.Message ==
UpdateCommandStrings
.PendingMigrationsHeader);
1013
Assert.Contains(
UpdateCommandStrings
.PendingMigrationsHint, subtleMessages);
3386
UpdateCommandStrings
.NixSelfUpdateMessage,
3387
UpdateCommandStrings
.ProjectUpdateSkippedAfterCliUpdateMessage
3389
: [
UpdateCommandStrings
.NixSelfUpdateMessage];
Projects\GuestAppHostProjectTests.cs (2)
1404
Assert.Equal(
UpdateCommandStrings
.RegeneratedSdkCode, m.Message);
1502
Assert.Equal(
UpdateCommandStrings
.RegeneratedSdkCode, m.Message);