8 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 (6)
Commands\NewCommandTests.cs (1)
905
public void
DisplayError
(string errorMessage) { }
Commands\PublishCommandPromptingIntegrationTests.cs (1)
987
public void
DisplayError
(string errorMessage) => DisplayedErrors.Add(errorMessage);
Commands\UpdateCommandTests.cs (1)
962
public void
DisplayError
(string errorMessage) => _innerService.DisplayError(errorMessage);
Templating\DotNetTemplateFactoryTests.cs (1)
420
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)
70 references to DisplayError
aspire (69)
Commands\AddCommand.cs (4)
139
InteractionService.
DisplayError
(AddCommandStrings.NoPackagesFound);
191
InteractionService.
DisplayError
(string.Format(CultureInfo.CurrentCulture, AddCommandStrings.PackageInstallationFailed, addPackageResult));
211
InteractionService.
DisplayError
(ex.Message);
217
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)
168
InteractionService.
DisplayError
("Failed to get projects from solution.");
315
InteractionService.
DisplayError
("Failed to install Aspire templates.");
342
InteractionService.
DisplayError
($"Failed to create Aspire projects. Exit code: {createResult}");
353
InteractionService.
DisplayError
("Failed to find created AppHost or ServiceDefaults projects in template output.");
395
InteractionService.
DisplayError
($"Failed to add AppHost project to solution. Exit code: {addAppHostResult}");
421
InteractionService.
DisplayError
($"Failed to add ServiceDefaults project to solution. Exit code: {addServiceDefaultsResult}");
453
InteractionService.
DisplayError
($"Failed to add reference to {Path.GetFileNameWithoutExtension(project.ProjectFile.Name)}.");
487
InteractionService.
DisplayError
($"Failed to add ServiceDefaults reference to {Path.GetFileNameWithoutExtension(project.ProjectFile.Name)}.");
514
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 (8)
179
InteractionService.
DisplayError
(InteractionServiceStrings.ProjectCouldNotBeBuilt);
252
InteractionService.
DisplayError
(RunCommandStrings.DashboardFailedToStart);
378
InteractionService.
DisplayError
(string.Format(CultureInfo.CurrentCulture, TemplatingStrings.CertificateTrustError, ex.Message.EscapeMarkup()));
383
InteractionService.
DisplayError
(string.Format(CultureInfo.CurrentCulture, InteractionServiceStrings.ErrorConnectingToAppHost, ex.Message.EscapeMarkup()));
389
InteractionService.
DisplayError
(string.Format(CultureInfo.CurrentCulture, InteractionServiceStrings.UnexpectedErrorOccurred, ex.Message.EscapeMarkup()));
545
InteractionService.
DisplayError
(RunCommandStrings.RunningInstanceStopFailed);
565
InteractionService.
DisplayError
(RunCommandStrings.RunningInstanceStopFailed);
574
InteractionService.
DisplayError
(RunCommandStrings.RunningInstanceStopFailed);
Commands\UpdateCommand.cs (5)
126
InteractionService.
DisplayError
("CLI self-update is not available in this environment.");
209
InteractionService.
DisplayError
(message);
215
InteractionService.
DisplayError
(message);
272
InteractionService.
DisplayError
("Unable to determine the current executable path.");
299
InteractionService.
DisplayError
($"Failed to update CLI: {ex.Message}");
Templating\DotNetTemplateFactory.cs (6)
434
interactionService.
DisplayError
(string.Format(CultureInfo.CurrentCulture, TemplatingStrings.TemplateInstallationFailed, templateInstallResult.ExitCode));
468
interactionService.
DisplayError
(TemplatingStrings.ProjectAlreadyExists);
473
interactionService.
DisplayError
(string.Format(CultureInfo.CurrentCulture, TemplatingStrings.ProjectCreationFailed, newProjectExitCode));
494
interactionService.
DisplayError
(string.Format(CultureInfo.CurrentCulture, TemplatingStrings.CertificateTrustError, ex.Message));
499
interactionService.
DisplayError
(ex.Message);
504
interactionService.
DisplayError
(ex.Message);
Utils\AppHostHelper.cs (4)
24
interactionService.
DisplayError
(ErrorStrings.ProjectCouldNotBeAnalyzed);
30
interactionService.
DisplayError
(ErrorStrings.ProjectIsNotAppHost);
36
interactionService.
DisplayError
(ErrorStrings.CouldNotParseAspireSDKVersion);
43
interactionService.
DisplayError
(string.Format(CultureInfo.CurrentCulture, ErrorStrings.AspireSDKVersionNotSupported, appHostInformation.AspireHostingVersion));
Utils\SdkInstallHelper.cs (2)
51
interactionService.
DisplayError
(sdkErrorMessage);
103
interactionService.
DisplayError
(
Aspire.Cli.Tests (1)
Commands\UpdateCommandTests.cs (1)
962
public void DisplayError(string errorMessage) => _innerService.
DisplayError
(errorMessage);