52 references to InteractionServiceStrings
aspire (46)
Certificates\CertificateService.cs (2)
84
$":locked_with_key: {
InteractionServiceStrings
.CheckingCertificates}",
118
$":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)
202
InteractionService.DisplayMessage(emoji: "bug",
InteractionServiceStrings
.WaitingForDebuggerToAttachToAppHost);
298
var errorMessage = string.Format(CultureInfo.CurrentCulture,
InteractionServiceStrings
.ErrorConnectingToAppHost, ex.Message);
306
var errorMessage = string.Format(CultureInfo.CurrentCulture,
InteractionServiceStrings
.UnexpectedErrorOccurred, ex.Message);
Commands\PipelineCommandBase.cs (5)
176
InteractionService.DisplayMessage("bug",
InteractionServiceStrings
.WaitingForDebuggerToAttachToAppHost);
274
var errorMessage = string.Format(CultureInfo.CurrentCulture,
InteractionServiceStrings
.ErrorConnectingToAppHost, ex.Message);
287
var errorMessage = string.Format(CultureInfo.CurrentCulture,
InteractionServiceStrings
.AppHostConnectionLost, ex.Message);
300
var errorMessage = string.Format(CultureInfo.CurrentCulture,
InteractionServiceStrings
.UnexpectedErrorOccurred, ex.Message);
799
options.Add(KeyValuePair.Create(CustomChoiceValue,
InteractionServiceStrings
.CustomChoiceLabel));
Commands\PublishCommand.cs (1)
83
protected override string GetCanceledMessage() =>
InteractionServiceStrings
.OperationCancelled;
Commands\RunCommand.cs (6)
269
InteractionService.DisplayError(string.Format(CultureInfo.CurrentCulture,
InteractionServiceStrings
.ProjectCouldNotBeBuilt, ExecutionContext.LogFilePath));
275
isExtensionHost ?
InteractionServiceStrings
.BuildingAppHost : RunCommandStrings.ConnectingToAppHost,
385
var errorMessage = string.Format(CultureInfo.CurrentCulture,
InteractionServiceStrings
.ErrorConnectingToAppHost, ex.Message);
389
InteractionService.DisplayMessage("page_facing_up", string.Format(CultureInfo.CurrentCulture,
InteractionServiceStrings
.SeeLogsAt, ExecutionContext.LogFilePath.EscapeMarkup()));
394
var errorMessage = string.Format(CultureInfo.CurrentCulture,
InteractionServiceStrings
.UnexpectedErrorOccurred, ex.Message);
398
InteractionService.DisplayMessage("page_facing_up", string.Format(CultureInfo.CurrentCulture,
InteractionServiceStrings
.SeeLogsAt, ExecutionContext.LogFilePath.EscapeMarkup()));
Interaction\ConsoleInteractionService.cs (14)
105
throw new InvalidOperationException(
InteractionServiceStrings
.InteractiveInputNotSupported);
137
throw new InvalidOperationException(
InteractionServiceStrings
.InteractiveInputNotSupported);
143
throw new EmptyChoicesException(string.Format(CultureInfo.CurrentCulture,
InteractionServiceStrings
.NoItemsAvailableForSelection, promptText));
166
throw new InvalidOperationException(
InteractionServiceStrings
.InteractiveInputNotSupported);
172
throw new EmptyChoicesException(string.Format(CultureInfo.CurrentCulture,
InteractionServiceStrings
.NoItemsAvailableForSelection, promptText));
189
DisplayError(
InteractionServiceStrings
.AppHostNotCompatibleConsiderUpgrading);
192
$"\t[bold]{
InteractionServiceStrings
.AspireHostingSDKVersion}[/]: {appHostHostingVersion.EscapeMarkup()}");
193
_outConsole.MarkupLine($"\t[bold]{
InteractionServiceStrings
.AspireCLIVersion}[/]: {cliInformationalVersion.EscapeMarkup()}");
194
_outConsole.MarkupLine($"\t[bold]{
InteractionServiceStrings
.RequiredCapability}[/]: {ex.RequiredCapability.EscapeMarkup()}");
276
DisplayMessage("stop_sign", $"[teal bold]{
InteractionServiceStrings
.StoppingAspire}[/]");
283
throw new InvalidOperationException(
InteractionServiceStrings
.InteractiveInputNotSupported);
306
_errorConsole.MarkupLine(string.Format(CultureInfo.CurrentCulture,
InteractionServiceStrings
.NewCliVersionAvailable, newerVersion.EscapeMarkup()));
310
_errorConsole.MarkupLine(string.Format(CultureInfo.CurrentCulture,
InteractionServiceStrings
.ToUpdateRunCommand, updateCommand.EscapeMarkup()));
313
_errorConsole.MarkupLine(string.Format(CultureInfo.CurrentCulture,
InteractionServiceStrings
.MoreInfoNewCliVersion, UpdateUrl));
Program.cs (1)
644
interactionService.DisplayError(string.Format(CultureInfo.CurrentCulture,
InteractionServiceStrings
.UnexpectedErrorOccurred, ex.Message));
Projects\ProjectLocator.cs (5)
43
return await interactionService.ShowStatusAsync(
InteractionServiceStrings
.SearchingProjects, async () =>
55
interactionService.DisplayMessage("magnifying_glass_tilted_left",
InteractionServiceStrings
.FindingAppHosts);
201
InteractionServiceStrings
.SelectAppHostToUse,
281
MultipleAppHostProjectsFoundBehavior.Prompt => await interactionService.PromptForSelectionAsync(
InteractionServiceStrings
.SelectAppHostToUse, results.BuildableAppHost, projectFile => $"{projectFile.Name.EscapeMarkup()} ({Path.GetRelativePath(executionContext.WorkingDirectory.FullName, projectFile.FullName).EscapeMarkup()})", cancellationToken),
329
interactionService.DisplayMessage("file_cabinet", string.Format(CultureInfo.CurrentCulture,
InteractionServiceStrings
.CreatedSettingsFile, $"[bold]'{relativeSettingsFilePath}'[/]"));
Resources\InteractionServiceStrings.Designer.cs (1)
42
global::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)
138
Assert.DoesNotContain(testOutputWriter.Logs, x => x.Contains(
InteractionServiceStrings
.FindingAppHosts));
Commands\RunCommandTests.cs (1)
423
$"{
InteractionServiceStrings
.BuildingAppHost} src{Path.DirectorySeparatorChar}MyApp.AppHost{Path.DirectorySeparatorChar}MyApp.AppHost.csproj",
Interaction\ConsoleInteractionServiceTests.cs (4)
246
Assert.Contains(
InteractionServiceStrings
.InteractiveInputNotSupported, exception.Message);
261
Assert.Contains(
InteractionServiceStrings
.InteractiveInputNotSupported, exception.Message);
276
Assert.Contains(
InteractionServiceStrings
.InteractiveInputNotSupported, exception.Message);
290
Assert.Contains(
InteractionServiceStrings
.InteractiveInputNotSupported, exception.Message);