7 implementations of DisplayError
aspire (2)
Interaction\ConsoleInteractionService.cs (1)
160
public void
DisplayError
(string errorMessage)
Interaction\ExtensionInteractionService.cs (1)
229
public void
DisplayError
(string errorMessage)
Aspire.Cli.Tests (5)
Commands\NewCommandTests.cs (1)
674
public void
DisplayError
(string errorMessage) { }
Commands\PublishCommandPromptingIntegrationTests.cs (1)
987
public void
DisplayError
(string errorMessage) => DisplayedErrors.Add(errorMessage);
Templating\DotNetTemplateFactoryTests.cs (1)
390
public void
DisplayError
(string message) { }
TestServices\TestConsoleInteractionService.cs (1)
59
public void
DisplayError
(string errorMessage)
TestServices\TestExtensionInteractionService.cs (1)
65
public void
DisplayError
(string errorMessage)
63 references to DisplayError
aspire (63)
Commands\AddCommand.cs (4)
132
InteractionService.
DisplayError
(AddCommandStrings.NoPackagesFound);
184
InteractionService.
DisplayError
(string.Format(CultureInfo.CurrentCulture, AddCommandStrings.PackageInstallationFailed, addPackageResult));
204
InteractionService.
DisplayError
(ex.Message);
210
InteractionService.
DisplayError
(string.Format(CultureInfo.CurrentCulture, AddCommandStrings.ErrorOccurredWhileAddingPackage, ex.Message));
Commands\BaseCommand.cs (6)
63
interactionService.
DisplayError
(InteractionServiceStrings.SpecifiedProjectFileNotAppHostProject);
68
interactionService.
DisplayError
(InteractionServiceStrings.ProjectOptionDoesntExist);
73
interactionService.
DisplayError
(InteractionServiceStrings.ProjectOptionNotSpecifiedMultipleAppHostsFound);
78
interactionService.
DisplayError
(InteractionServiceStrings.ProjectOptionNotSpecifiedNoCsprojFound);
83
interactionService.
DisplayError
(InteractionServiceStrings.UnbuildableAppHostsDetected);
87
interactionService.
DisplayError
(string.Format(CultureInfo.CurrentCulture, InteractionServiceStrings.UnexpectedErrorOccurred, ex.Message));
Commands\CacheCommand.cs (1)
125
InteractionService.
DisplayError
(string.Format(CultureInfo.CurrentCulture, CacheCommandStrings.CacheClearFailed, ex.Message));
Commands\ConfigCommand.cs (9)
88
InteractionService.
DisplayError
(ErrorStrings.ConfigurationKeyRequired);
112
InteractionService.
DisplayError
(string.Format(CultureInfo.CurrentCulture, ErrorStrings.ConfigurationKeyNotFound, key));
152
InteractionService.
DisplayError
(ErrorStrings.ConfigurationKeyRequired);
158
InteractionService.
DisplayError
(ErrorStrings.ConfigurationValueRequired);
193
InteractionService.
DisplayError
(string.Format(CultureInfo.CurrentCulture, ErrorStrings.ErrorSettingConfiguration, ex.Message));
262
InteractionService.
DisplayError
(ErrorStrings.ConfigurationKeyRequired);
276
InteractionService.
DisplayError
(string.Format(CultureInfo.CurrentCulture, ErrorStrings.ConfigurationKeyNotFound, key));
310
InteractionService.
DisplayError
(string.Format(CultureInfo.CurrentCulture, ErrorStrings.ConfigurationKeyNotFound, key));
316
InteractionService.
DisplayError
(string.Format(CultureInfo.CurrentCulture, ErrorStrings.ErrorDeletingConfiguration, ex.Message));
Commands\ExecCommand.cs (9)
106
InteractionService.
DisplayError
(ExecCommandStrings.TargetResourceNotSpecified);
114
InteractionService.
DisplayError
(ExecCommandStrings.NoCommandSpecified);
122
InteractionService.
DisplayError
(ExecCommandStrings.FailedToParseCommand);
148
InteractionService.
DisplayError
(ErrorStrings.CommandNotSupportedWithSingleFileAppHost);
261
InteractionService.
DisplayError
(RunCommandStrings.ProjectCouldNotBeRun);
272
InteractionService.
DisplayError
(RunCommandStrings.ProjectCouldNotBeRun);
294
InteractionService.
DisplayError
(string.Format(CultureInfo.CurrentCulture, TemplatingStrings.CertificateTrustError, ex.Message));
299
InteractionService.
DisplayError
(string.Format(CultureInfo.CurrentCulture, InteractionServiceStrings.ErrorConnectingToAppHost, ex.Message));
305
InteractionService.
DisplayError
(string.Format(CultureInfo.CurrentCulture, InteractionServiceStrings.UnexpectedErrorOccurred, ex.Message));
Commands\InitCommand.cs (9)
151
InteractionService.
DisplayError
("Failed to get projects from solution.");
298
InteractionService.
DisplayError
("Failed to install Aspire templates.");
325
InteractionService.
DisplayError
($"Failed to create Aspire projects. Exit code: {createResult}");
336
InteractionService.
DisplayError
("Failed to find created AppHost or ServiceDefaults projects in template output.");
378
InteractionService.
DisplayError
($"Failed to add AppHost project to solution. Exit code: {addAppHostResult}");
404
InteractionService.
DisplayError
($"Failed to add ServiceDefaults project to solution. Exit code: {addServiceDefaultsResult}");
436
InteractionService.
DisplayError
($"Failed to add reference to {Path.GetFileNameWithoutExtension(project.ProjectFile.Name)}.");
470
InteractionService.
DisplayError
($"Failed to add ServiceDefaults reference to {Path.GetFileNameWithoutExtension(project.ProjectFile.Name)}.");
497
InteractionService.
DisplayError
("Single-file AppHost template not found.");
Commands\PipelineCommandBase.cs (5)
176
InteractionService.
DisplayError
(InteractionServiceStrings.ProjectCouldNotBeBuilt);
250
InteractionService.
DisplayError
(GetCanceledMessage());
272
InteractionService.
DisplayError
(string.Format(CultureInfo.CurrentCulture, InteractionServiceStrings.ErrorConnectingToAppHost, ex.Message));
280
InteractionService.
DisplayError
(string.Format(CultureInfo.CurrentCulture, InteractionServiceStrings.UnexpectedErrorOccurred, ex.Message));
730
InteractionService.
DisplayError
(error);
Commands\RunCommand.cs (5)
163
InteractionService.
DisplayError
(InteractionServiceStrings.ProjectCouldNotBeBuilt);
237
InteractionService.
DisplayError
(RunCommandStrings.DashboardFailedToStart);
363
InteractionService.
DisplayError
(string.Format(CultureInfo.CurrentCulture, TemplatingStrings.CertificateTrustError, ex.Message.EscapeMarkup()));
368
InteractionService.
DisplayError
(string.Format(CultureInfo.CurrentCulture, InteractionServiceStrings.ErrorConnectingToAppHost, ex.Message.EscapeMarkup()));
374
InteractionService.
DisplayError
(string.Format(CultureInfo.CurrentCulture, InteractionServiceStrings.UnexpectedErrorOccurred, ex.Message.EscapeMarkup()));
Commands\UpdateCommand.cs (4)
93
InteractionService.
DisplayError
("CLI self-update is not available in this environment.");
123
InteractionService.
DisplayError
(message);
155
InteractionService.
DisplayError
("Unable to determine the current executable path.");
173
InteractionService.
DisplayError
($"Failed to update CLI: {ex.Message}");
Templating\DotNetTemplateFactory.cs (5)
345
interactionService.
DisplayError
(string.Format(CultureInfo.CurrentCulture, TemplatingStrings.TemplateInstallationFailed, templateInstallResult.ExitCode));
379
interactionService.
DisplayError
(TemplatingStrings.ProjectAlreadyExists);
384
interactionService.
DisplayError
(string.Format(CultureInfo.CurrentCulture, TemplatingStrings.ProjectCreationFailed, newProjectExitCode));
405
interactionService.
DisplayError
(string.Format(CultureInfo.CurrentCulture, TemplatingStrings.CertificateTrustError, ex.Message));
410
interactionService.
DisplayError
(ex.Message);
Utils\AppHostHelper.cs (4)
22
interactionService.
DisplayError
(ErrorStrings.ProjectCouldNotBeAnalyzed);
28
interactionService.
DisplayError
(ErrorStrings.ProjectIsNotAppHost);
34
interactionService.
DisplayError
(ErrorStrings.CouldNotParseAspireSDKVersion);
41
interactionService.
DisplayError
(string.Format(CultureInfo.CurrentCulture, ErrorStrings.AspireSDKVersionNotSupported, appHostInformation.AspireHostingVersion));
Utils\SdkInstallHelper.cs (2)
51
interactionService.
DisplayError
(sdkErrorMessage);
103
interactionService.
DisplayError
(