Skip to content

Commit 4c9b359

Browse files
committed
Fix up build error.
1 parent 4d82b71 commit 4c9b359

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/Aspire.Cli/Commands/RunCommand.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ protected override async Task<int> ExecuteAsync(ParseResult parseResult, Cancell
124124
// Validate that single file AppHost feature is enabled if we detected a .cs file
125125
if (isSingleFileAppHost && !_features.IsFeatureEnabled(KnownFeatures.SingleFileAppHostEnabled, false))
126126
{
127-
_interactionService.DisplayError(ErrorStrings.SingleFileAppHostFeatureNotEnabled);
127+
InteractionService.DisplayError(ErrorStrings.SingleFileAppHostFeatureNotEnabled);
128128
return ExitCodeConstants.FailedToFindProject;
129129
}
130130

@@ -155,12 +155,12 @@ protected override async Task<int> ExecuteAsync(ParseResult parseResult, Cancell
155155
if (!ExtensionHelper.IsExtensionHost(InteractionService, out _, out var extensionBackchannel)
156156
|| !await extensionBackchannel.HasCapabilityAsync(KnownCapabilities.DevKit, cancellationToken))
157157
{
158-
var buildExitCode = await AppHostHelper.BuildAppHostAsync(_runner, _interactionService, effectiveAppHostFile, buildOptions, ExecutionContext.WorkingDirectory, cancellationToken);
158+
var buildExitCode = await AppHostHelper.BuildAppHostAsync(_runner, InteractionService, effectiveAppHostFile, buildOptions, ExecutionContext.WorkingDirectory, cancellationToken);
159159

160160
if (buildExitCode != 0)
161161
{
162-
_interactionService.DisplayLines(buildOutputCollector.GetLines());
163-
_interactionService.DisplayError(InteractionServiceStrings.ProjectCouldNotBeBuilt);
162+
InteractionService.DisplayLines(buildOutputCollector.GetLines());
163+
InteractionService.DisplayError(InteractionServiceStrings.ProjectCouldNotBeBuilt);
164164
return ExitCodeConstants.FailedToBuildArtifacts;
165165
}
166166
}

0 commit comments

Comments
 (0)