1 implementation of DisplayError
aspire (1)
Interaction\InteractionService.cs (1)
85public 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)
20interactionService.DisplayError("The project could not be analyzed due to a build error. For more information run with --debug switch."); 26interactionService.DisplayError($"The project is not an Aspire app host project."); 32interactionService.DisplayError($"Could not parse Aspire SDK version."); 39interactionService.DisplayError($"The Aspire SDK version '{appHostInformation.AspireHostingSdkVersion}' is not supported. Please update to the latest version.");