1 implementation of DisplayError
aspire (1)
Interaction\InteractionService.cs (1)
91
public void
DisplayError
(string errorMessage)
32 references to DisplayError
aspire (32)
Commands\AddCommand.cs (7)
98
_interactionService.
DisplayError
("No packages found.");
150
_interactionService.
DisplayError
($"The package installation failed with exit code {addPackageResult}. For more information run with --debug switch.");
161
_interactionService.
DisplayError
("The --project option specified a project that does not exist.");
166
_interactionService.
DisplayError
("The --project option was not specified and multiple app host project files were detected.");
171
_interactionService.
DisplayError
("The project argument was not specified and no *.csproj files were detected.");
181
_interactionService.
DisplayError
(ex.Message);
187
_interactionService.
DisplayError
($"An error occurred while adding the package: {ex.Message}");
Commands\PublishCommand.cs (9)
113
_interactionService.
DisplayError
("The project could not be built. For more information run with --debug switch.");
170
_interactionService.
DisplayError
($"Publishing artifacts failed with exit code {exitCode}. For more information run with --debug switch.");
175
_interactionService.
DisplayError
("The operation was canceled.");
180
_interactionService.
DisplayError
("The specified project file is not an Aspire app host project.");
185
_interactionService.
DisplayError
("The --project option specified a project that does not exist.");
190
_interactionService.
DisplayError
("The --project option was not specified and multiple app host project files were detected.");
195
_interactionService.
DisplayError
("The project argument was not specified and no *.csproj files were detected.");
207
_interactionService.
DisplayError
($"An error occurred while connecting to the app host. The app host possibly crashed before it was available: {ex.Message}");
213
_interactionService.
DisplayError
($"An unexpected error occurred: {ex.Message}");
Commands\RunCommand.cs (8)
103
_interactionService.
DisplayError
($"The project could not be built. For more information run with --debug switch.");
278
_interactionService.
DisplayError
($"The project could not be run. For more information run with --debug switch.");
298
_interactionService.
DisplayError
("The --project option specified a project that does not exist.");
303
_interactionService.
DisplayError
("The --project option was not specified and multiple app host project files were detected.");
308
_interactionService.
DisplayError
("The project argument was not specified and no *.csproj files were detected.");
320
_interactionService.
DisplayError
($"An error occurred while trusting the certificates: {ex.Message}");
325
_interactionService.
DisplayError
($"An error occurred while connecting to the app host. The app host possibly crashed before it was available: {ex.Message}");
331
_interactionService.
DisplayError
($"An unexpected error occurred: {ex.Message}");
Templating\DotNetTemplateFactory.cs (4)
224
interactionService.
DisplayError
($"The template installation failed with exit code {templateInstallResult.ExitCode}. For more information run with --debug switch.");
255
interactionService.
DisplayError
($"Project creation failed with exit code {newProjectExitCode}. For more information run with --debug switch.");
272
interactionService.
DisplayError
($"An error occurred while trusting the certificates: {ex.Message}");
277
interactionService.
DisplayError
(ex.Message);
Utils\AppHostHelper.cs (4)
20
interactionService.
DisplayError
("The project could not be analyzed due to a build error. For more information run with --debug switch.");
26
interactionService.
DisplayError
($"The project is not an Aspire app host project.");
32
interactionService.
DisplayError
($"Could not parse Aspire SDK version.");
39
interactionService.
DisplayError
($"The Aspire SDK version '{appHostInformation.AspireHostingSdkVersion}' is not supported. Please update to the latest version.");