1 write to _interactionService
aspire (1)
Commands\PublishCommand.cs (1)
50
_interactionService
= interactionService;
18 references to _interactionService
aspire (18)
Commands\PublishCommand.cs (18)
95
appHostCompatibilityCheck = await AppHostHelper.CheckAppHostCompatibilityAsync(_runner,
_interactionService
, effectiveAppHostProjectFile, cancellationToken);
108
var buildExitCode = await AppHostHelper.BuildAppHostAsync(_runner,
_interactionService
, effectiveAppHostProjectFile, buildOptions, cancellationToken);
112
_interactionService
.DisplayLines(buildOutputCollector.GetLines());
113
_interactionService
.DisplayError("The project could not be built. For more information run with --debug switch.");
120
_interactionService
.DisplayMessage($"hammer_and_wrench", $"Generating artifacts...");
147
_interactionService
.DisplayMessage("bug", $"Waiting for debugger to attach to app host process");
165
_interactionService
.DisplaySuccess($"Successfully published artifacts to: {fullyQualifiedOutputPath}");
169
_interactionService
.DisplayLines(publishOutputCollector.GetLines());
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.");
200
return
_interactionService
.DisplayIncompatibleVersionError(
207
_interactionService
.DisplayError($"An error occurred while connecting to the app host. The app host possibly crashed before it was available: {ex.Message}");
208
_interactionService
.DisplayLines(publishOutputCollector.GetLines());
213
_interactionService
.DisplayError($"An unexpected error occurred: {ex.Message}");