1 implementation of DisplayError
aspire (1)
Interaction\InteractionService.cs (1)
85
public void
DisplayError
(string errorMessage)
25 references to DisplayError
aspire (25)
Commands\AddCommand.cs (6)
90
_interactionService.
DisplayError
("No packages found.");
134
_interactionService.
DisplayError
($"The package installation failed with exit code {addPackageResult}. For more information run with --debug switch.");
145
_interactionService.
DisplayError
("The --project option specified a project that does not exist.");
150
_interactionService.
DisplayError
("The --project option was not specified and multiple *.csproj files were detected.");
155
_interactionService.
DisplayError
("The project argument was not specified and no *.csproj files were detected.");
165
_interactionService.
DisplayError
($"An error occurred while adding the package: {ex.Message}");
Commands\NewCommand.cs (3)
147
_interactionService.
DisplayError
($"The template installation failed with exit code {templateInstallResult.ExitCode}. For more information run with --debug switch.");
163
_interactionService.
DisplayError
($"Project creation failed with exit code {newProjectExitCode}. For more information run with --debug switch.");
173
_interactionService.
DisplayError
($"An error occurred while trusting the certificates: {ex.Message}");
Commands\PublishCommand.cs (7)
102
_interactionService.
DisplayError
("The project could not be built. For more information run with --debug switch.");
139
_interactionService.
DisplayError
($"The publisher inspection failed with exit code {publishersResult.ExitCode}. For more information run with --debug switch.");
146
_interactionService.
DisplayError
($"No publishers were found.");
262
_interactionService.
DisplayError
($"Publishing artifacts failed with exit code {exitCode}. For more information run with --debug switch.");
273
_interactionService.
DisplayError
("The --project option specified a project that does not exist.");
278
_interactionService.
DisplayError
("The --project option was not specified and multiple *.csproj files were detected.");
283
_interactionService.
DisplayError
("The project argument was not specified and no *.csproj files were detected.");
Commands\RunCommand.cs (5)
87
_interactionService.
DisplayError
($"An error occurred while trusting the certificates: {ex.Message}");
99
_interactionService.
DisplayError
($"The project could not be built. For more information run with --debug switch.");
221
_interactionService.
DisplayError
("The --project option specified a project that does not exist.");
226
_interactionService.
DisplayError
("The --project option was not specified and multiple *.csproj files were detected.");
231
_interactionService.
DisplayError
("The project argument was not specified and no *.csproj files were detected.");
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.");