56 references to InteractionServiceStrings
aspire (50)
Certificates\CertificateService.cs (2)
57InteractionServiceStrings.CheckingCertificates, 78InteractionServiceStrings.TrustingCertificates,
Commands\AppHostLauncher.cs (1)
129InteractionServiceStrings.WaitingForDebuggerToAttachToAppHost);
Commands\BaseCommand.cs (6)
100=> (ExitCodeConstants.FailedToFindProject, InteractionServiceStrings.SpecifiedProjectFileNotAppHostProject), 102=> (ExitCodeConstants.FailedToFindProject, InteractionServiceStrings.ProjectOptionDoesntExist), 104=> (ExitCodeConstants.FailedToFindProject, InteractionServiceStrings.ProjectOptionNotSpecifiedMultipleAppHostsFound), 106=> (ExitCodeConstants.FailedToFindProject, InteractionServiceStrings.ProjectOptionNotSpecifiedNoCsprojFound), 108=> (ExitCodeConstants.FailedToFindProject, InteractionServiceStrings.UnbuildableAppHostsDetected), 109_ => (ExitCodeConstants.FailedToFindProject, string.Format(CultureInfo.CurrentCulture, InteractionServiceStrings.UnexpectedErrorOccurred, ex.Message))
Commands\ExecCommand.cs (3)
191InteractionService.DisplayMessage(KnownEmojis.Bug, InteractionServiceStrings.WaitingForDebuggerToAttachToAppHost); 287var errorMessage = string.Format(CultureInfo.CurrentCulture, InteractionServiceStrings.ErrorConnectingToAppHost, ex.Message); 295var errorMessage = string.Format(CultureInfo.CurrentCulture, InteractionServiceStrings.UnexpectedErrorOccurred, ex.Message);
Commands\PipelineCommandBase.cs (5)
220InteractionService.DisplayMessage(KnownEmojis.Bug, InteractionServiceStrings.WaitingForDebuggerToAttachToAppHost); 328var errorMessage = string.Format(CultureInfo.CurrentCulture, InteractionServiceStrings.ErrorConnectingToAppHost, ex.Message); 341var errorMessage = string.Format(CultureInfo.CurrentCulture, InteractionServiceStrings.AppHostConnectionLost, ex.Message); 354var errorMessage = string.Format(CultureInfo.CurrentCulture, InteractionServiceStrings.UnexpectedErrorOccurred, ex.Message); 853options.Add(KeyValuePair.Create(CustomChoiceValue, InteractionServiceStrings.CustomChoiceLabel));
Commands\PublishCommand.cs (1)
86protected override string GetCanceledMessage() => InteractionServiceStrings.OperationCancelled;
Commands\RestoreCommand.cs (1)
146var errorMessage = string.Format(CultureInfo.CurrentCulture, InteractionServiceStrings.UnexpectedErrorOccurred, ex.Message);
Commands\RunCommand.cs (6)
244InteractionService.DisplayError(string.Format(CultureInfo.CurrentCulture, InteractionServiceStrings.ProjectCouldNotBeBuilt, ExecutionContext.LogFilePath)); 251InteractionService.DisplayMessage(KnownEmojis.Bug, InteractionServiceStrings.WaitingForDebuggerToAttachToAppHost); 390var errorMessage = string.Format(CultureInfo.CurrentCulture, InteractionServiceStrings.ErrorConnectingToAppHost, ex.Message); 394InteractionService.DisplayMessage(KnownEmojis.PageFacingUp, string.Format(CultureInfo.CurrentCulture, InteractionServiceStrings.SeeLogsAt, ExecutionContext.LogFilePath)); 405var errorMessage = string.Format(CultureInfo.CurrentCulture, InteractionServiceStrings.UnexpectedErrorOccurred, ex.Message); 409InteractionService.DisplayMessage(KnownEmojis.PageFacingUp, string.Format(CultureInfo.CurrentCulture, InteractionServiceStrings.SeeLogsAt, ExecutionContext.LogFilePath));
Diagnostics\StartupErrorWriter.cs (1)
67_errorConsole.MarkupLine(prefix + string.Format(CultureInfo.CurrentCulture, InteractionServiceStrings.SeeLogsAt, _logFilePath.EscapeMarkup()));
Interaction\ConsoleInteractionService.cs (14)
135throw new InvalidOperationException(InteractionServiceStrings.InteractiveInputNotSupported); 172throw new InvalidOperationException(InteractionServiceStrings.InteractiveInputNotSupported); 178throw new EmptyChoicesException(string.Format(CultureInfo.CurrentCulture, InteractionServiceStrings.NoItemsAvailableForSelection, promptText)); 208throw new InvalidOperationException(InteractionServiceStrings.InteractiveInputNotSupported); 215throw new EmptyChoicesException(string.Format(CultureInfo.CurrentCulture, InteractionServiceStrings.NoItemsAvailableForSelection, promptText)); 285DisplayError(InteractionServiceStrings.AppHostNotCompatibleConsiderUpgrading); 288$"\t[bold]{InteractionServiceStrings.AspireHostingSDKVersion}[/]: {appHostHostingVersion.EscapeMarkup()}"); 289MessageConsole.MarkupLine($"\t[bold]{InteractionServiceStrings.AspireCLIVersion}[/]: {cliInformationalVersion.EscapeMarkup()}"); 290MessageConsole.MarkupLine($"\t[bold]{InteractionServiceStrings.RequiredCapability}[/]: {ex.RequiredCapability.EscapeMarkup()}"); 386DisplayMessage(KnownEmojis.StopSign, $"[teal bold]{InteractionServiceStrings.StoppingAspire}[/]", allowMarkup: true); 393throw new InvalidOperationException(InteractionServiceStrings.InteractiveInputNotSupported); 416_errorConsole.MarkupLine(string.Format(CultureInfo.CurrentCulture, InteractionServiceStrings.NewCliVersionAvailable, newerVersion.EscapeMarkup())); 420_errorConsole.MarkupLine(string.Format(CultureInfo.CurrentCulture, InteractionServiceStrings.ToUpdateRunCommand, updateCommand.EscapeMarkup())); 423_errorConsole.MarkupLine(string.Format(CultureInfo.CurrentCulture, InteractionServiceStrings.MoreInfoNewCliVersion, UpdateUrl));
Program.cs (1)
752errorWriter.WriteLine(string.Format(CultureInfo.CurrentCulture, InteractionServiceStrings.UnexpectedErrorOccurred, ex.Message));
Projects\ProjectLocator.cs (6)
52return await interactionService.ShowStatusAsync(InteractionServiceStrings.SearchingProjects, async () => 65interactionService.DisplayMessage(KnownEmojis.MagnifyingGlassTiltedLeft, InteractionServiceStrings.FindingAppHosts); 293InteractionServiceStrings.SelectAppHostToUse, 387MultipleAppHostProjectsFoundBehavior.Prompt => await interactionService.PromptForSelectionAsync(InteractionServiceStrings.SelectAppHostToUse, results.BuildableAppHost, projectFile => $"{projectFile.Name.EscapeMarkup()} ({Path.GetRelativePath(executionContext.WorkingDirectory.FullName, projectFile.FullName).EscapeMarkup()})", cancellationToken), 436var message = fileExisted ? InteractionServiceStrings.UpdatedSettingsFile : InteractionServiceStrings.CreatedSettingsFile;
Resources\InteractionServiceStrings.Designer.cs (1)
42global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("Aspire.Cli.Resources.InteractionServiceStrings", typeof(InteractionServiceStrings).Assembly);
Utils\AppHostHelper.cs (2)
59$"{InteractionServiceStrings.CheckingProjectType}: {relativePath}", 73$"{InteractionServiceStrings.BuildingAppHost} {relativePath}",
Aspire.Cli.Tests (6)
Commands\ExecCommandTests.cs (1)
138Assert.DoesNotContain(testOutputWriter.Logs, x => x.Contains(InteractionServiceStrings.FindingAppHosts));
Commands\RunCommandTests.cs (1)
466$"{InteractionServiceStrings.BuildingAppHost} src{Path.DirectorySeparatorChar}MyApp.AppHost{Path.DirectorySeparatorChar}MyApp.AppHost.csproj",
Interaction\ConsoleInteractionServiceTests.cs (4)
247Assert.Contains(InteractionServiceStrings.InteractiveInputNotSupported, exception.Message); 262Assert.Contains(InteractionServiceStrings.InteractiveInputNotSupported, exception.Message); 277Assert.Contains(InteractionServiceStrings.InteractiveInputNotSupported, exception.Message); 291Assert.Contains(InteractionServiceStrings.InteractiveInputNotSupported, exception.Message);