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)
744
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)
77
public void
DisplayError
(string errorMessage)
TestServices\TestExtensionInteractionService.cs (1)
65
public void
DisplayError
(string errorMessage)
65 references to DisplayError
aspire (65)
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 (6)
186
InteractionService.
DisplayError
(InteractionServiceStrings.ProjectCouldNotBeBuilt);
276
InteractionService.
DisplayError
(GetCanceledMessage());
298
InteractionService.
DisplayError
(string.Format(CultureInfo.CurrentCulture, InteractionServiceStrings.ErrorConnectingToAppHost, ex.Message));
306
InteractionService.
DisplayError
(string.Format(CultureInfo.CurrentCulture, InteractionServiceStrings.AppHostConnectionLost, ex.Message));
314
InteractionService.
DisplayError
(string.Format(CultureInfo.CurrentCulture, InteractionServiceStrings.UnexpectedErrorOccurred, ex.Message));
764
InteractionService.
DisplayError
(error);
Commands\RunCommand.cs (5)
158
InteractionService.
DisplayError
(InteractionServiceStrings.ProjectCouldNotBeBuilt);
231
InteractionService.
DisplayError
(RunCommandStrings.DashboardFailedToStart);
357
InteractionService.
DisplayError
(string.Format(CultureInfo.CurrentCulture, TemplatingStrings.CertificateTrustError, ex.Message.EscapeMarkup()));
362
InteractionService.
DisplayError
(string.Format(CultureInfo.CurrentCulture, InteractionServiceStrings.ErrorConnectingToAppHost, ex.Message.EscapeMarkup()));
368
InteractionService.
DisplayError
(string.Format(CultureInfo.CurrentCulture, InteractionServiceStrings.UnexpectedErrorOccurred, ex.Message.EscapeMarkup()));
Commands\UpdateCommand.cs (5)
117
InteractionService.
DisplayError
("CLI self-update is not available in this environment.");
176
InteractionService.
DisplayError
(message);
182
InteractionService.
DisplayError
(message);
232
InteractionService.
DisplayError
("Unable to determine the current executable path.");
250
InteractionService.
DisplayError
($"Failed to update CLI: {ex.Message}");
Templating\DotNetTemplateFactory.cs (5)
403
interactionService.
DisplayError
(string.Format(CultureInfo.CurrentCulture, TemplatingStrings.TemplateInstallationFailed, templateInstallResult.ExitCode));
437
interactionService.
DisplayError
(TemplatingStrings.ProjectAlreadyExists);
442
interactionService.
DisplayError
(string.Format(CultureInfo.CurrentCulture, TemplatingStrings.ProjectCreationFailed, newProjectExitCode));
463
interactionService.
DisplayError
(string.Format(CultureInfo.CurrentCulture, TemplatingStrings.CertificateTrustError, ex.Message));
468
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
(