162 references to UpdateCommandStrings
aspire (120)
Commands\UpdateCommand.cs (33)
47private static readonly OptionWithLegacy<FileInfo?> s_appHostOption = new("--apphost", "--project", UpdateCommandStrings.ProjectArgumentDescription); 50Description = UpdateCommandStrings.SelfOptionDescription 58Description = UpdateCommandStrings.YesOptionDescription, 63Description = UpdateCommandStrings.MigrateOptionDescription 67Description = UpdateCommandStrings.NuGetConfigDirOptionDescription 85: base("update", UpdateCommandStrings.Description, services) 116? UpdateCommandStrings.ChannelOptionDescriptionWithStaging 117: UpdateCommandStrings.ChannelOptionDescription 125? UpdateCommandStrings.QualityOptionDescriptionWithStaging 126: UpdateCommandStrings.QualityOptionDescription, 227InteractionService.DisplayMessage(KnownEmojis.Information, UpdateCommandStrings.DotNetToolSelfUpdateMessage); 238InteractionService.DisplayMessage(KnownEmojis.Information, UpdateCommandStrings.NpmSelfUpdateMessage); 322UpdateCommandStrings.CheckingForUpdates, 349UpdateCommandStrings.NoChannelFoundMatching, 410UpdateCommandStrings.SelectChannelPrompt, 476UpdateCommandStrings.UpdateCliAfterProjectUpdatePrompt, 485InteractionService.DisplayMessage(KnownEmojis.Information, UpdateCommandStrings.DotNetToolSelfUpdateMessage); 493InteractionService.DisplayMessage(KnownEmojis.Information, UpdateCommandStrings.NpmSelfUpdateMessage); 528UpdateCommandStrings.NoAppHostFoundUpdateCliPrompt, 594InteractionService.DisplayMessage(KnownEmojis.Information, UpdateCommandStrings.PendingMigrationsHeader); 600InteractionService.DisplaySubtleMessage(UpdateCommandStrings.PendingMigrationsHint); 644InteractionService.DisplayMessage(KnownEmojis.Warning, UpdateCommandStrings.MigrationApplyFailedWarning); 688InteractionService.DisplayMessage(KnownEmojis.Information, UpdateCommandStrings.ProjectUpdateSkippedAfterCliUpdateMessage); 693UpdateCommandStrings.UpdateCliBeforeGuestProjectUpdatePrompt, 705InteractionService.DisplayMessage(KnownEmojis.Information, UpdateCommandStrings.DotNetToolSelfUpdateMessage); 707InteractionService.DisplayMessage(KnownEmojis.Information, UpdateCommandStrings.ProjectUpdateSkippedAfterCliUpdateMessage); 714InteractionService.DisplayMessage(KnownEmojis.Information, UpdateCommandStrings.NpmSelfUpdateMessage); 716InteractionService.DisplayMessage(KnownEmojis.Information, UpdateCommandStrings.ProjectUpdateSkippedAfterCliUpdateMessage); 723InteractionService.DisplayMessage(KnownEmojis.Information, UpdateCommandStrings.ProjectUpdateSkippedAfterCliUpdateMessage); 767InteractionService.DisplayMessage(KnownEmojis.Information, UpdateCommandStrings.NixSelfUpdateMessage); 884UpdateCommandStrings.ExtractingNewCli, 892InteractionService.DisplayMessage(KnownEmojis.Package, UpdateCommandStrings.ExtractedNewCli); 982string.Format(CultureInfo.CurrentCulture, UpdateCommandStrings.NoWritePermissionToInstallDirectory, installDir));
DotNet\DotNetAppHostNuGetConfigMerger.cs (2)
139UpdateCommandStrings.ChannelFeedAlreadyConfiguredFormat, 290string.Format(CultureInfo.CurrentCulture, UpdateCommandStrings.UpdateCandidateFileChangedFormat, candidate.TargetFile.FullName));
DotNet\DotNetAppHostRestorePreview.cs (1)
41CultureInfo.CurrentCulture, UpdateCommandStrings.NuGetConfigOutsideHierarchyFormat,
DotNet\DotNetAppHostUpdateTransaction.cs (3)
90CultureInfo.CurrentCulture, UpdateCommandStrings.UpdateCandidateFileChangedFormat, path)); 119string.Format(CultureInfo.CurrentCulture, UpdateCommandStrings.UpdateCandidateRollbackFileChangedFormat, path)); 139throw new AggregateException(UpdateCommandStrings.UpdateCandidateRollbackFailed, failures);
DotNet\DotNetRestoreConfiguration.cs (1)
33string.Format(CultureInfo.InvariantCulture, UpdateCommandStrings.FailedFetchItemsAndPropertiesFormat, projectFile.FullName));
Projects\GuestAppHostProject.cs (7)
1872UpdateCommandStrings.AnalyzingProjectStatus, 1949_interactionService.DisplayMessage(KnownEmojis.CheckMarkButton, UpdateCommandStrings.ProjectUpToDateMessage); 1972if (!await _interactionService.PromptConfirmAsync(UpdateCommandStrings.PerformUpdatesPrompt, context.ConfirmBinding, cancellationToken: cancellationToken)) 2000UpdateCommandStrings.RegeneratingSdkCode, 2018UpdateCommandStrings.FailedToRegenerateSdkAfterUpdateFormat, 2035_interactionService.DisplayMessage(KnownEmojis.Package, UpdateCommandStrings.RegeneratedSdkCode); 2039_interactionService.DisplaySuccess(UpdateCommandStrings.UpdateSuccessfulMessage);
Projects\ProjectUpdater.cs (59)
105UpdateCommandStrings.AnalyzingProjectStatus, 126interactionService.DisplayMessage(KnownEmojis.CheckMarkButton, UpdateCommandStrings.ProjectUpToDateMessage); 165interactionService.DisplayMessage(KnownEmojis.Warning, $"[yellow]{UpdateCommandStrings.FallbackParsingWarning}[/]", allowMarkup: true); 169if (!await interactionService.PromptConfirmAsync(UpdateCommandStrings.PerformUpdatesPrompt, context.ConfirmBinding, cancellationToken: cancellationToken)) 181throw new ProjectUpdaterException(UpdateCommandStrings.FailedDiscoverNuGetConfig); 216promptText: UpdateCommandStrings.WhichDirectoryNuGetConfigPrompt, 268UpdateCommandStrings.PreparingSdkForUpdateStatus, 284UpdateCommandStrings.ApplyingUpdates, 288CultureInfo.InvariantCulture, UpdateCommandStrings.ExecutingUpdateStepFormat, sdkRepairStep.Description)); 305UpdateCommandStrings.ApplyingUpdates, 314interactionService.DisplaySubtleMessage(string.Format(CultureInfo.InvariantCulture, UpdateCommandStrings.ExecutingUpdateStepFormat, updateStep.Description)); 325UpdateCommandStrings.RestoringPackagesAfterUpdate, 335throw new ProjectUpdaterException(string.Format(CultureInfo.InvariantCulture, UpdateCommandStrings.FailedToRestoreAfterUpdateFormat, projectFile.FullName)); 348CultureInfo.CurrentCulture, UpdateCommandStrings.UpdateCandidatePolicyChangedFormat, directory)); 358interactionService.DisplaySubtleMessage(string.Format(CultureInfo.InvariantCulture, UpdateCommandStrings.ExecutingUpdateStepFormat, updateStep.Description)); 373UpdateCommandStrings.UpdateCandidateRollbackFailed, updateFailure, rollbackFailure); 380interactionService.DisplaySuccess(UpdateCommandStrings.UpdateSuccessfulMessage); 409UpdateCommandStrings.ChannelUpdateRequiresAmbientNuGetConfigurationFormat, 473var appHostAnalyzeStep = new AnalyzeStep(UpdateCommandStrings.AnalyzeAppHost, () => AnalyzeAppHostAsync(context, cancellationToken)); 511UpdateCommandStrings.UpdateChannelStepDescriptionFormat, 512existingChannel ?? UpdateCommandStrings.ChannelNonePlaceholder, 513targetChannel ?? UpdateCommandStrings.ChannelNonePlaceholder)); 519UpdateCommandStrings.UpdatePackageFormat, 602throw new ProjectUpdaterException(string.Format(CultureInfo.InvariantCulture, UpdateCommandStrings.FailedFetchItemsAndPropertiesFormat, projectFile.FullName)); 645var appHostSdkAnalyzeStep = new AnalyzeStep(UpdateCommandStrings.AnalyzeAppHostSdk, () => AnalyzeAppHostSdkAsync(context, cancellationToken)); 648var appHostProjectAnalyzeStep = new AnalyzeStep(string.Format(CultureInfo.InvariantCulture, UpdateCommandStrings.AnalyzeProjectFormat, context.AppHostProjectFile.FullName), () => AnalyzeProjectAsync(context.AppHostProjectFile, context, cancellationToken)); 674throw new ProjectUpdaterException(string.Format(CultureInfo.InvariantCulture, UpdateCommandStrings.NoPackageFoundFormat, packageId, context.Channel.Name)); 677logger.LogWarning(UpdateCommandStrings.PackageNotFoundInChannelWarningFormat, packageId, context.Channel.Name); 710UpdateCommandStrings.ConditionalSdkEvaluationRequiredFormat, context.AppHostProjectFile.FullName)); 769string.Format(CultureInfo.InvariantCulture, UpdateCommandStrings.UpdatePackageFormat, "Aspire.AppHost.Sdk", sdkVersion ?? "unknown", latestSdkPackage?.Version), 820UpdateCommandStrings.ConditionalSdkExplicitEditRequiredFormat, projectFile.FullName)); 873UpdateCommandStrings.RemovedObsoleteAppHostPackage, 903UpdateCommandStrings.RemovedObsoleteAppHostPackage, 1086UpdateCommandStrings.MigratedToNewSdkFormat, package.Version)); 1091interactionService.DisplaySubtleMessage(UpdateCommandStrings.RemovedObsoleteAppHostPackage); 1115throw new ProjectUpdaterException(string.Format(CultureInfo.InvariantCulture, UpdateCommandStrings.CouldNotFindRootProjectElementFormat, projectFile.FullName)); 1139throw new ProjectUpdaterException(string.Format(CultureInfo.InvariantCulture, UpdateCommandStrings.CouldNotFindSdkElementFormat, projectFile.FullName)); 1442var referencedProjectPath = projectReference.GetProperty("FullPath").GetString() ?? throw new ProjectUpdaterException(UpdateCommandStrings.ProjectReferenceNoFullPath); 1444context.AnalyzeSteps.Enqueue(new AnalyzeStep(string.Format(CultureInfo.InvariantCulture, UpdateCommandStrings.AnalyzeProjectFormat, referencedProjectFile.FullName), () => AnalyzeProjectAsync(referencedProjectFile, context, cancellationToken))); 1453var packageId = packageReference.GetProperty("Identity").GetString() ?? throw new ProjectUpdaterException(UpdateCommandStrings.PackageReferenceNoIdentity); 1543string.Format(CultureInfo.InvariantCulture, UpdateCommandStrings.UpdatePackageFormat, packageId, packageVersion, latestPackage.Version), 1584string.Format(CultureInfo.InvariantCulture, UpdateCommandStrings.UpdatePackageFormat, packageId, currentVersion, latestPackage.Version), 1704throw new ProjectUpdaterException(string.Format(CultureInfo.InvariantCulture, UpdateCommandStrings.CouldNotFindPackageVersionInDirectoryPackagesProps, packageId, directoryPackagesPropsFile.FullName)); 1730throw new ProjectUpdaterException(string.Format(CultureInfo.InvariantCulture, UpdateCommandStrings.FailedUpdatePackageReferenceFormat, package.Id, projectFile.FullName)); 1767interactionService.DisplayPlainText(UpdateCommandStrings.NoChangesDetectedInNuGetConfig); 1774UpdateCommandStrings.ApplyChangesToNuGetConfig, 1910interactionService.DisplayPlainText(string.Format(CultureInfo.InvariantCulture, UpdateCommandStrings.AddedFeedFormat, feed.Value)); 1917interactionService.DisplayPlainText(string.Format(CultureInfo.InvariantCulture, UpdateCommandStrings.MappingAddedFormat, pattern)); 1926interactionService.DisplayPlainText(string.Format(CultureInfo.InvariantCulture, UpdateCommandStrings.RemovedFeedFormat, feed.Value)); 1933interactionService.DisplayPlainText(string.Format(CultureInfo.InvariantCulture, UpdateCommandStrings.RetainedFeedFormat, feed.Value)); 1941interactionService.DisplayPlainText(string.Format(CultureInfo.InvariantCulture, UpdateCommandStrings.MappingAddedFormat, pattern)); 1947interactionService.DisplayPlainText(string.Format(CultureInfo.InvariantCulture, UpdateCommandStrings.MappingRemovedFormat, pattern)); 1961interactionService.DisplayPlainText(string.Format(CultureInfo.InvariantCulture, UpdateCommandStrings.MappingRetainedFormat, pattern)); 1975interactionService.DisplayPlainText(string.Format(CultureInfo.InvariantCulture, UpdateCommandStrings.RetainedFeedFormat, mappingChange.SourceKey)); 1978interactionService.DisplayPlainText(string.Format(CultureInfo.InvariantCulture, UpdateCommandStrings.MappingAddedFormat, pattern)); 1982interactionService.DisplayPlainText(string.Format(CultureInfo.InvariantCulture, UpdateCommandStrings.MappingRemovedFormat, pattern)); 2073? $"[grey]{UpdateCommandStrings.ChannelNonePlaceholder.EscapeMarkup()}[/]" 2076? $"[grey]{UpdateCommandStrings.ChannelNonePlaceholder.EscapeMarkup()}[/]" 2084? $"[grey]{UpdateCommandStrings.SdkVersionUnknownPlaceholder.EscapeMarkup()}[/]"
Projects\RepositoryToolUpdater.cs (13)
95if (await interactionService.PromptConfirmAsync(UpdateCommandStrings.PerformUpdatesPrompt, confirmBinding, cancellationToken: cancellationToken)) 124UpdateCommandStrings.UnsupportedToolVersionFormat, manifest.File.FullName, reference.Version)); 145interactionService.DisplayMessage(KnownEmojis.CheckMarkButton, UpdateCommandStrings.RepositoryToolsUpToDate); 152string.Format(CultureInfo.CurrentCulture, UpdateCommandStrings.RepositoryToolUpdateFormat, 168interactionService.DisplayMessage(KnownEmojis.Information, UpdateCommandStrings.RestoreRepositoryDotNetTool); 172interactionService.DisplayMessage(KnownEmojis.Information, UpdateCommandStrings.RestoreRepositoryNpmTool); 193throw new ProjectUpdaterException(string.Format(CultureInfo.CurrentCulture, UpdateCommandStrings.ToolManifestChangedFormat, original.File.FullName)); 233interactionService.DisplaySuccess(UpdateCommandStrings.RepositoryToolsUpdated); 254throw new ProjectUpdaterException(string.Format(CultureInfo.CurrentCulture, UpdateCommandStrings.NoPackageFoundFormat, DotNetPackageId, channel.Name)); 265throw new ProjectUpdaterException(string.Format(CultureInfo.CurrentCulture, UpdateCommandStrings.FailedResolveNpmToolFormat, version ?? "latest")); 272UpdateCommandStrings.NoPackageFoundFormat, DotNetPackageId, channel.Name)); 313throw new ProjectUpdaterException(string.Format(CultureInfo.CurrentCulture, UpdateCommandStrings.FailedReadToolManifestFormat, path, ex.Message)); 318: UpdateStep(UpdateCommandStrings.UpdateRepositoryTools, Callback)
Resources\UpdateCommandStrings.Designer.cs (1)
42global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("Aspire.Cli.Resources.UpdateCommandStrings", typeof(UpdateCommandStrings).Assembly);
Aspire.Cli.Tests (42)
Commands\InitCommandTests.cs (1)
69UpdateCommandStrings.ChannelFeedAlreadyConfiguredFormat, configPath, "company")], interaction.DisplayedErrors);
Commands\NewCommandTests.cs (1)
72UpdateCommandStrings.ChannelFeedAlreadyConfiguredFormat,
Commands\UpdateCommandRepositoryToolsTests.cs (13)
69Assert.Contains(UpdateCommandStrings.RepositoryToolsUpdated, interaction.DisplayedSuccess); 97expectedGuidance.Add(UpdateCommandStrings.RestoreRepositoryDotNetTool); 105expectedGuidance.Add(UpdateCommandStrings.RestoreRepositoryNpmTool); 176Assert.Equal(UpdateCommandStrings.RepositoryToolsUpdated, Assert.Single(interaction.DisplayedSuccess)); 179.Where(message => message.Message == UpdateCommandStrings.RestoreRepositoryDotNetTool || message.Message == UpdateCommandStrings.RestoreRepositoryNpmTool) 181Assert.Contains(interaction.DisplayedMessages, message => message.Message == UpdateCommandStrings.ProjectUpdateSkippedAfterCliUpdateMessage); 237Assert.Equal(UpdateCommandStrings.PerformUpdatesPrompt, prompt); 259UpdateCommandStrings.PerformUpdatesPrompt, context.ConfirmBinding, cancellationToken: cancellationToken); 462if (prompt != UpdateCommandStrings.PerformUpdatesPrompt) 464Assert.Equal(UpdateCommandStrings.ApplyChangesToNuGetConfig, prompt); 541Assert.Single(interaction.BooleanPromptCalls, call => call.PromptText == UpdateCommandStrings.PerformUpdatesPrompt); 555Assert.Contains(UpdateCommandStrings.RepositoryToolsUpdated, interaction.DisplayedSuccess);
Commands\UpdateCommandTests.cs (7)
59Assert.Equal(UpdateCommandStrings.ChannelOptionDescriptionWithStaging, channelOption.Description); 386var message = string.Format(UpdateCommandStrings.FailedToRegenerateSdkAfterUpdateFormat, appHost.FullName); 1063Assert.Contains(interactionService.DisplayedMessages, m => m.Message == UpdateCommandStrings.PendingMigrationsHeader); 1065Assert.Contains(UpdateCommandStrings.PendingMigrationsHint, subtleMessages); 3568UpdateCommandStrings.NixSelfUpdateMessage, 3569UpdateCommandStrings.ProjectUpdateSkippedAfterCliUpdateMessage 3571: [UpdateCommandStrings.NixSelfUpdateMessage];
DotNet\DotNetAppHostNuGetConfigMergerTests.cs (2)
110UpdateCommandStrings.ChannelFeedAlreadyConfiguredFormat, 192UpdateCommandStrings.ChannelFeedAlreadyConfiguredFormat, target.FullName, "aspire-test"), error.Message);
Projects\GuestAppHostProjectTests.cs (4)
1295[UpdateCommandStrings.RepositoryToolsUpdated, UpdateCommandStrings.UpdateSuccessfulMessage], 2437Assert.Equal(UpdateCommandStrings.RegeneratedSdkCode, m.Message); 2538Assert.Equal(UpdateCommandStrings.RegeneratedSdkCode, m.Message);
Projects\ProjectUpdaterNuGetConfigurationTests.cs (9)
227Assert.Equal([UpdateCommandStrings.PerformUpdatesPrompt], 989interaction.ConfirmCallback = (prompt, _) => prompt == UpdateCommandStrings.PerformUpdatesPrompt; 1103interaction.ConfirmCallback = (prompt, _) => prompt == UpdateCommandStrings.PerformUpdatesPrompt || outcome != "decline"; 1137Assert.Equal([UpdateCommandStrings.PerformUpdatesPrompt, UpdateCommandStrings.ApplyChangesToNuGetConfig], 1141CultureInfo.InvariantCulture, UpdateCommandStrings.MappingAddedFormat, "*"))); 1558UpdateCommandStrings.ChannelFeedAlreadyConfiguredFormat, configPath, sourceKey), error.Message); 1562Assert.Equal([UpdateCommandStrings.PerformUpdatesPrompt], 1629Assert.Equal([UpdateCommandStrings.PerformUpdatesPrompt],
Projects\RepositoryToolUpdaterTests.cs (5)
245Assert.Contains(interaction.DisplayedMessages, message => message.Message == UpdateCommandStrings.RestoreRepositoryDotNetTool); 303Assert.Contains(interaction.DisplayedMessages, message => message.Message == UpdateCommandStrings.RestoreRepositoryNpmTool); 349Assert.Contains(interaction.DisplayedMessages, message => message.Message == UpdateCommandStrings.RepositoryToolsUpToDate); 687Assert.Equal(UpdateCommandStrings.RepositoryToolsUpdated, Assert.Single(interaction.DisplayedSuccess)); 717Assert.Equal(string.Format(UpdateCommandStrings.ToolManifestChangedFormat, npmPath), exception.Message);