50 references to InteractionServiceStrings
aspire (44)
Certificates\CertificateService.cs (2)
82$":locked_with_key: {InteractionServiceStrings.CheckingCertificates}", 117$":locked_with_key: {InteractionServiceStrings.TrustingCertificates}",
Commands\BaseCommand.cs (6)
68=> InteractionServiceStrings.SpecifiedProjectFileNotAppHostProject, 70=> InteractionServiceStrings.ProjectOptionDoesntExist, 72=> InteractionServiceStrings.ProjectOptionNotSpecifiedMultipleAppHostsFound, 74=> InteractionServiceStrings.ProjectOptionNotSpecifiedNoCsprojFound, 76=> InteractionServiceStrings.UnbuildableAppHostsDetected, 77_ => string.Format(CultureInfo.CurrentCulture, InteractionServiceStrings.UnexpectedErrorOccurred, ex.Message)
Commands\ExecCommand.cs (3)
210InteractionService.DisplayMessage(emoji: "bug", InteractionServiceStrings.WaitingForDebuggerToAttachToAppHost); 306var errorMessage = string.Format(CultureInfo.CurrentCulture, InteractionServiceStrings.ErrorConnectingToAppHost, ex.Message); 314var errorMessage = string.Format(CultureInfo.CurrentCulture, InteractionServiceStrings.UnexpectedErrorOccurred, ex.Message);
Commands\PipelineCommandBase.cs (5)
186InteractionService.DisplayMessage("bug", InteractionServiceStrings.WaitingForDebuggerToAttachToAppHost); 272var errorMessage = string.Format(CultureInfo.CurrentCulture, InteractionServiceStrings.ErrorConnectingToAppHost, ex.Message); 285var errorMessage = string.Format(CultureInfo.CurrentCulture, InteractionServiceStrings.AppHostConnectionLost, ex.Message); 298var errorMessage = string.Format(CultureInfo.CurrentCulture, InteractionServiceStrings.UnexpectedErrorOccurred, ex.Message); 795options.Add(KeyValuePair.Create(CustomChoiceValue, InteractionServiceStrings.CustomChoiceLabel));
Commands\PublishCommand.cs (1)
84protected override string GetCanceledMessage() => InteractionServiceStrings.OperationCancelled;
Commands\RunCommand.cs (4)
267InteractionService.DisplayError(InteractionServiceStrings.ProjectCouldNotBeBuilt); 273isExtensionHost ? InteractionServiceStrings.BuildingAppHost : RunCommandStrings.ConnectingToAppHost, 386var errorMessage = string.Format(CultureInfo.CurrentCulture, InteractionServiceStrings.ErrorConnectingToAppHost, ex.Message.EscapeMarkup()); 397var errorMessage = string.Format(CultureInfo.CurrentCulture, InteractionServiceStrings.UnexpectedErrorOccurred, ex.Message.EscapeMarkup());
Interaction\ConsoleInteractionService.cs (14)
105throw new InvalidOperationException(InteractionServiceStrings.InteractiveInputNotSupported); 137throw new InvalidOperationException(InteractionServiceStrings.InteractiveInputNotSupported); 143throw new EmptyChoicesException(string.Format(CultureInfo.CurrentCulture, InteractionServiceStrings.NoItemsAvailableForSelection, promptText)); 166throw new InvalidOperationException(InteractionServiceStrings.InteractiveInputNotSupported); 172throw new EmptyChoicesException(string.Format(CultureInfo.CurrentCulture, InteractionServiceStrings.NoItemsAvailableForSelection, promptText)); 189DisplayError(InteractionServiceStrings.AppHostNotCompatibleConsiderUpgrading); 192$"\t[bold]{InteractionServiceStrings.AspireHostingSDKVersion}[/]: {appHostHostingVersion}"); 193_outConsole.MarkupLine($"\t[bold]{InteractionServiceStrings.AspireCLIVersion}[/]: {cliInformationalVersion}"); 194_outConsole.MarkupLine($"\t[bold]{InteractionServiceStrings.RequiredCapability}[/]: {ex.RequiredCapability}"); 276DisplayMessage("stop_sign", $"[teal bold]{InteractionServiceStrings.StoppingAspire}[/]"); 283throw new InvalidOperationException(InteractionServiceStrings.InteractiveInputNotSupported); 306_errorConsole.MarkupLine(string.Format(CultureInfo.CurrentCulture, InteractionServiceStrings.NewCliVersionAvailable, newerVersion)); 310_errorConsole.MarkupLine(string.Format(CultureInfo.CurrentCulture, InteractionServiceStrings.ToUpdateRunCommand, updateCommand)); 313_errorConsole.MarkupLine(string.Format(CultureInfo.CurrentCulture, InteractionServiceStrings.MoreInfoNewCliVersion, UpdateUrl));
Program.cs (1)
479interactionService.DisplayError(string.Format(CultureInfo.CurrentCulture, InteractionServiceStrings.UnexpectedErrorOccurred, ex.Message));
Projects\ProjectLocator.cs (5)
42return await interactionService.ShowStatusAsync(InteractionServiceStrings.SearchingProjects, async () => 54interactionService.DisplayMessage("magnifying_glass_tilted_left", InteractionServiceStrings.FindingAppHosts); 200InteractionServiceStrings.SelectAppHostToUse, 280MultipleAppHostProjectsFoundBehavior.Prompt => await interactionService.PromptForSelectionAsync(InteractionServiceStrings.SelectAppHostToUse, results.BuildableAppHost, projectFile => $"{projectFile.Name} ({Path.GetRelativePath(executionContext.WorkingDirectory.FullName, projectFile.FullName)})", cancellationToken), 328interactionService.DisplayMessage("file_cabinet", string.Format(CultureInfo.CurrentCulture, InteractionServiceStrings.CreatedSettingsFile, $"[bold]'{relativeSettingsFilePath}'[/]"));
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$":microscope: {InteractionServiceStrings.CheckingProjectType}: {relativePath}", 72$":hammer_and_wrench: {InteractionServiceStrings.BuildingAppHost} {relativePath}",
Aspire.Cli.Tests (6)
Commands\ExecCommandTests.cs (1)
137Assert.DoesNotContain(testOutputWriter.Logs, x => x.Contains(InteractionServiceStrings.FindingAppHosts));
Commands\RunCommandTests.cs (1)
386$"{InteractionServiceStrings.BuildingAppHost} src{Path.DirectorySeparatorChar}MyApp.AppHost{Path.DirectorySeparatorChar}MyApp.AppHost.csproj",
Interaction\ConsoleInteractionServiceTests.cs (4)
244Assert.Contains(InteractionServiceStrings.InteractiveInputNotSupported, exception.Message); 259Assert.Contains(InteractionServiceStrings.InteractiveInputNotSupported, exception.Message); 274Assert.Contains(InteractionServiceStrings.InteractiveInputNotSupported, exception.Message); 288Assert.Contains(InteractionServiceStrings.InteractiveInputNotSupported, exception.Message);