7 implementations of DisplayError
aspire (2)
Interaction\ConsoleInteractionService.cs (1)
141
public void
DisplayError
(string errorMessage)
Interaction\ExtensionInteractionService.cs (1)
227
public void
DisplayError
(string errorMessage)
Aspire.Cli.Tests (5)
Commands\NewCommandTests.cs (1)
673
public void
DisplayError
(string errorMessage) { }
Commands\PublishCommandPromptingIntegrationTests.cs (1)
976
public void
DisplayError
(string errorMessage) => DisplayedErrors.Add(errorMessage);
Templating\DotNetTemplateFactoryTests.cs (1)
407
public void
DisplayError
(string message) { }
TestServices\TestConsoleInteractionService.cs (1)
59
public void
DisplayError
(string errorMessage)
TestServices\TestExtensionInteractionService.cs (1)
64
public void
DisplayError
(string errorMessage)
60 references to DisplayError
aspire (60)
Commands\AddCommand.cs (4)
126
InteractionService.
DisplayError
(AddCommandStrings.NoPackagesFound);
178
InteractionService.
DisplayError
(string.Format(CultureInfo.CurrentCulture, AddCommandStrings.PackageInstallationFailed, addPackageResult));
198
InteractionService.
DisplayError
(ex.Message);
204
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)
97
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)
100
InteractionService.
DisplayError
(ExecCommandStrings.TargetResourceNotSpecified);
108
InteractionService.
DisplayError
(ExecCommandStrings.NoCommandSpecified);
116
InteractionService.
DisplayError
(ExecCommandStrings.FailedToParseCommand);
142
InteractionService.
DisplayError
(ErrorStrings.CommandNotSupportedWithSingleFileAppHost);
255
InteractionService.
DisplayError
(RunCommandStrings.ProjectCouldNotBeRun);
266
InteractionService.
DisplayError
(RunCommandStrings.ProjectCouldNotBeRun);
288
InteractionService.
DisplayError
(string.Format(CultureInfo.CurrentCulture, TemplatingStrings.CertificateTrustError, ex.Message));
293
InteractionService.
DisplayError
(string.Format(CultureInfo.CurrentCulture, InteractionServiceStrings.ErrorConnectingToAppHost, ex.Message));
299
InteractionService.
DisplayError
(string.Format(CultureInfo.CurrentCulture, InteractionServiceStrings.UnexpectedErrorOccurred, ex.Message));
Commands\InitCommand.cs (7)
140
InteractionService.
DisplayError
("Failed to get projects from solution.");
272
InteractionService.
DisplayError
("Failed to install Aspire templates.");
301
InteractionService.
DisplayError
("Failed to find created AppHost or ServiceDefaults projects in template output.");
368
InteractionService.
DisplayError
($"Failed to add reference to {Path.GetFileNameWithoutExtension(project.ProjectFile.Name)}.");
391
InteractionService.
DisplayError
($"Failed to add ServiceDefaults reference to {Path.GetFileNameWithoutExtension(project.ProjectFile.Name)}.");
422
InteractionService.
DisplayError
("Single-file AppHost template not found.");
433
InteractionService.
DisplayError
("AppHost template not found.");
Commands\PublishCommandBase.cs (6)
112
InteractionService.
DisplayError
(ErrorStrings.SingleFileAppHostFeatureNotEnabled);
152
InteractionService.
DisplayError
(InteractionServiceStrings.ProjectCouldNotBeBuilt);
221
InteractionService.
DisplayError
(GetCanceledMessage());
237
InteractionService.
DisplayError
(string.Format(CultureInfo.CurrentCulture, InteractionServiceStrings.ErrorConnectingToAppHost, ex.Message));
243
InteractionService.
DisplayError
(string.Format(CultureInfo.CurrentCulture, InteractionServiceStrings.UnexpectedErrorOccurred, ex.Message));
575
InteractionService.
DisplayError
(error);
Commands\RunCommand.cs (6)
126
InteractionService.
DisplayError
(ErrorStrings.SingleFileAppHostFeatureNotEnabled);
165
InteractionService.
DisplayError
(InteractionServiceStrings.ProjectCouldNotBeBuilt);
238
InteractionService.
DisplayError
(RunCommandStrings.DashboardFailedToStart);
358
InteractionService.
DisplayError
(string.Format(CultureInfo.CurrentCulture, TemplatingStrings.CertificateTrustError, ex.Message.EscapeMarkup()));
363
InteractionService.
DisplayError
(string.Format(CultureInfo.CurrentCulture, InteractionServiceStrings.ErrorConnectingToAppHost, ex.Message.EscapeMarkup()));
369
InteractionService.
DisplayError
(string.Format(CultureInfo.CurrentCulture, InteractionServiceStrings.UnexpectedErrorOccurred, ex.Message.EscapeMarkup()));
Commands\UpdateCommand.cs (2)
49
InteractionService.
DisplayError
(ErrorStrings.CommandNotSupportedWithSingleFileAppHost);
62
InteractionService.
DisplayError
(message);
Templating\DotNetTemplateFactory.cs (5)
323
interactionService.
DisplayError
(string.Format(CultureInfo.CurrentCulture, TemplatingStrings.TemplateInstallationFailed, templateInstallResult.ExitCode));
357
interactionService.
DisplayError
(TemplatingStrings.ProjectAlreadyExists);
362
interactionService.
DisplayError
(string.Format(CultureInfo.CurrentCulture, TemplatingStrings.ProjectCreationFailed, newProjectExitCode));
383
interactionService.
DisplayError
(string.Format(CultureInfo.CurrentCulture, TemplatingStrings.CertificateTrustError, ex.Message));
388
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 (1)
41
interactionService.
DisplayError
(sdkErrorMessage);