58 references to UpdateCommandStrings
aspire (58)
Commands\UpdateCommand.cs (15)
34
private static readonly OptionWithLegacy<FileInfo?> s_appHostOption = new("--apphost", "--project",
UpdateCommandStrings
.ProjectArgumentDescription);
37
Description =
UpdateCommandStrings
.SelfOptionDescription
54
: base("update",
UpdateCommandStrings
.Description, features, updateNotifier, executionContext, interactionService, telemetry)
74
?
UpdateCommandStrings
.ChannelOptionDescriptionWithStaging
75
:
UpdateCommandStrings
.ChannelOptionDescription
83
?
UpdateCommandStrings
.QualityOptionDescriptionWithStaging
84
:
UpdateCommandStrings
.QualityOptionDescription,
116
InteractionService.DisplayMessage(KnownEmojis.Information,
UpdateCommandStrings
.DotNetToolSelfUpdateMessage);
156
UpdateCommandStrings
.CheckingForUpdates,
180
UpdateCommandStrings
.SelectChannelPrompt,
208
UpdateCommandStrings
.UpdateCliAfterProjectUpdatePrompt,
242
UpdateCommandStrings
.NoAppHostFoundUpdateCliPrompt,
356
UpdateCommandStrings
.ExtractingNewCli,
364
InteractionService.DisplayMessage(KnownEmojis.Package,
UpdateCommandStrings
.ExtractedNewCli);
439
string.Format(CultureInfo.CurrentCulture,
UpdateCommandStrings
.NoWritePermissionToInstallDirectory, installDir));
Projects\GuestAppHostProject.cs (6)
1036
UpdateCommandStrings
.AnalyzingProjectStatus,
1090
_interactionService.DisplayMessage(KnownEmojis.CheckMark,
UpdateCommandStrings
.ProjectUpToDateMessage);
1107
if (!await _interactionService.ConfirmAsync(
UpdateCommandStrings
.PerformUpdatesPrompt, true, cancellationToken))
1131
UpdateCommandStrings
.RegeneratingSdkCode,
1149
_interactionService.DisplayMessage(KnownEmojis.Package,
UpdateCommandStrings
.RegeneratedSdkCode);
1152
_interactionService.DisplaySuccess(
UpdateCommandStrings
.UpdateSuccessfulMessage);
Projects\ProjectUpdater.cs (36)
32
var (updateSteps, fallbackUsed) = await interactionService.ShowStatusAsync(
UpdateCommandStrings
.AnalyzingProjectStatus, () => GetUpdateStepsAsync(projectFile, channel, cancellationToken));
37
interactionService.DisplayMessage(KnownEmojis.CheckMark,
UpdateCommandStrings
.ProjectUpToDateMessage);
69
interactionService.DisplayMessage(KnownEmojis.Warning, $"[yellow]{
UpdateCommandStrings
.FallbackParsingWarning}[/]", allowMarkup: true);
73
if (!await interactionService.ConfirmAsync(
UpdateCommandStrings
.PerformUpdatesPrompt, true, cancellationToken))
84
throw new ProjectUpdaterException(
UpdateCommandStrings
.FailedDiscoverNuGetConfig);
104
_ => throw new InvalidOperationException(
UpdateCommandStrings
.UnexpectedCodePath)
110
promptText:
UpdateCommandStrings
.WhichDirectoryNuGetConfigPrompt,
124
UpdateCommandStrings
.ApplyingUpdates,
129
interactionService.DisplaySubtleMessage(string.Format(CultureInfo.InvariantCulture,
UpdateCommandStrings
.ExecutingUpdateStepFormat, updateStep.Description));
138
interactionService.DisplaySuccess(
UpdateCommandStrings
.UpdateSuccessfulMessage);
159
var appHostAnalyzeStep = new AnalyzeStep(
UpdateCommandStrings
.AnalyzeAppHost, () => AnalyzeAppHostAsync(context, cancellationToken));
191
throw new ProjectUpdaterException(string.Format(CultureInfo.InvariantCulture,
UpdateCommandStrings
.FailedFetchItemsAndPropertiesFormat, projectFile.FullName));
231
var appHostSdkAnalyzeStep = new AnalyzeStep(
UpdateCommandStrings
.AnalyzeAppHostSdk, () => AnalyzeAppHostSdkAsync(context, cancellationToken));
234
var appHostProjectAnalyzeStep = new AnalyzeStep(string.Format(CultureInfo.InvariantCulture,
UpdateCommandStrings
.AnalyzeProjectFormat, context.AppHostProjectFile.FullName), () => AnalyzeProjectAsync(context.AppHostProjectFile, context, cancellationToken));
254
return latestPackage ?? throw new ProjectUpdaterException(string.Format(CultureInfo.InvariantCulture,
UpdateCommandStrings
.NoPackageFoundFormat, packageId, context.Channel.Name));
280
string.Format(CultureInfo.InvariantCulture,
UpdateCommandStrings
.UpdatePackageFormat, "Aspire.AppHost.Sdk", sdkVersion ?? "unknown", latestSdkPackage?.Version),
385
UpdateCommandStrings
.MigratedToNewSdkFormat, package.Version));
390
interactionService.DisplaySubtleMessage(
UpdateCommandStrings
.RemovedObsoleteAppHostPackage);
414
throw new ProjectUpdaterException(string.Format(CultureInfo.InvariantCulture,
UpdateCommandStrings
.CouldNotFindRootProjectElementFormat, projectFile.FullName));
432
throw new ProjectUpdaterException(string.Format(CultureInfo.InvariantCulture,
UpdateCommandStrings
.CouldNotFindSdkElementFormat, projectFile.FullName));
637
var referencedProjectPath = projectReference.GetProperty("FullPath").GetString() ?? throw new ProjectUpdaterException(
UpdateCommandStrings
.ProjectReferenceNoFullPath);
639
context.AnalyzeSteps.Enqueue(new AnalyzeStep(string.Format(CultureInfo.InvariantCulture,
UpdateCommandStrings
.AnalyzeProjectFormat, referencedProjectFile.FullName), () => AnalyzeProjectAsync(referencedProjectFile, context, cancellationToken)));
648
var packageId = packageReference.GetProperty("Identity").GetString() ?? throw new ProjectUpdaterException(
UpdateCommandStrings
.PackageReferenceNoIdentity);
722
string.Format(CultureInfo.InvariantCulture,
UpdateCommandStrings
.UpdatePackageFormat, packageId, packageVersion, latestPackage!.Version),
752
string.Format(CultureInfo.InvariantCulture,
UpdateCommandStrings
.UpdatePackageFormat, packageId, currentVersion, latestPackage!.Version),
869
throw new ProjectUpdaterException(string.Format(CultureInfo.InvariantCulture,
UpdateCommandStrings
.CouldNotFindPackageVersionInDirectoryPackagesProps, packageId, directoryPackagesPropsFile.FullName));
891
throw new ProjectUpdaterException(string.Format(CultureInfo.InvariantCulture,
UpdateCommandStrings
.FailedUpdatePackageReferenceFormat, package.Id, projectFile.FullName));
903
interactionService.DisplayPlainText(
UpdateCommandStrings
.NoChangesDetectedInNuGetConfig);
910
UpdateCommandStrings
.ApplyChangesToNuGetConfig,
1046
interactionService.DisplayPlainText(string.Format(CultureInfo.InvariantCulture,
UpdateCommandStrings
.AddedFeedFormat, feed.Value));
1053
interactionService.DisplayPlainText(string.Format(CultureInfo.InvariantCulture,
UpdateCommandStrings
.MappingAddedFormat, pattern));
1062
interactionService.DisplayPlainText(string.Format(CultureInfo.InvariantCulture,
UpdateCommandStrings
.RemovedFeedFormat, feed.Value));
1069
interactionService.DisplayPlainText(string.Format(CultureInfo.InvariantCulture,
UpdateCommandStrings
.RetainedFeedFormat, feed.Value));
1077
interactionService.DisplayPlainText(string.Format(CultureInfo.InvariantCulture,
UpdateCommandStrings
.MappingAddedFormat, pattern));
1083
interactionService.DisplayPlainText(string.Format(CultureInfo.InvariantCulture,
UpdateCommandStrings
.MappingRemovedFormat, pattern));
1097
interactionService.DisplayPlainText(string.Format(CultureInfo.InvariantCulture,
UpdateCommandStrings
.MappingRetainedFormat, pattern));
Resources\UpdateCommandStrings.Designer.cs (1)
36
resourceMan = new ResourceManager("Aspire.Cli.Resources.UpdateCommandStrings", typeof(
UpdateCommandStrings
).Assembly);