27 references to ExecutionContext
aspire (27)
Commands\AddCommand.cs (3)
137
var hasHives =
ExecutionContext
.GetPrHiveCount() > 0;
224
ExecutionContext
.HomeDirectory,
248
InteractionService.DisplayError(string.Format(CultureInfo.CurrentCulture, AddCommandStrings.PackageInstallationFailed, ExitCodeConstants.FailedToAddPackage,
ExecutionContext
.LogFilePath));
Commands\AgentInitCommand.cs (2)
109
var defaultWorkspaceRoot = gitRoot ??
ExecutionContext
.WorkingDirectory;
139
WorkingDirectory =
ExecutionContext
.WorkingDirectory,
Commands\CacheCommand.cs (4)
48
var cacheDirectory =
ExecutionContext
.CacheDirectory;
83
var sdksDirectory =
ExecutionContext
.SdksDirectory;
114
var logsDirectory =
ExecutionContext
.LogsDirectory;
115
var currentLogFilePath =
ExecutionContext
.LogFilePath;
Commands\ExecCommand.cs (4)
144
appHostCompatibilityCheck = await AppHostHelper.CheckAppHostCompatibilityAsync(_runner, InteractionService, effectiveAppHostProjectFile, Telemetry,
ExecutionContext
.WorkingDirectory,
ExecutionContext
.LogFilePath, cancellationToken);
246
InteractionService.DisplayError(string.Format(CultureInfo.CurrentCulture, RunCommandStrings.ProjectCouldNotBeRun,
ExecutionContext
.LogFilePath));
257
InteractionService.DisplayError(string.Format(CultureInfo.CurrentCulture, RunCommandStrings.ProjectCouldNotBeRun,
ExecutionContext
.LogFilePath));
Commands\InitCommand.cs (1)
338
ExecutionContext
.WorkingDirectory,
Commands\NewCommand.cs (2)
213
var packages = await selectedChannel.GetTemplatePackagesAsync(
ExecutionContext
.WorkingDirectory, cancellationToken);
278
var workspaceRoot = new DirectoryInfo(templateResult.OutputPath ??
ExecutionContext
.WorkingDirectory.FullName);
Commands\PipelineCommandBase.cs (2)
149
await extensionInteractionService.StartDebugSessionAsync(
ExecutionContext
.WorkingDirectory.FullName, passedAppHostProjectFile?.FullName, debug: true, new DebugSessionOptions { Command = Name, Args = commandArgs.Length > 0 ? commandArgs : null });
208
WorkingDirectory =
ExecutionContext
.WorkingDirectory,
Commands\RunCommand.cs (7)
173
await extensionInteractionService.StartDebugSessionAsync(
ExecutionContext
.WorkingDirectory.FullName, passedAppHostProjectFile?.FullName, startDebugSession, new DebugSessionOptions { Command = "run" });
202
var runningInstanceResult = await project.FindAndStopRunningInstanceAsync(effectiveAppHostFile,
ExecutionContext
.HomeDirectory, cancellationToken);
227
WorkingDirectory =
ExecutionContext
.WorkingDirectory,
244
InteractionService.DisplayError(string.Format(CultureInfo.CurrentCulture, InteractionServiceStrings.ProjectCouldNotBeBuilt,
ExecutionContext
.LogFilePath));
274
var appHostRelativePath = Path.GetRelativePath(
ExecutionContext
.WorkingDirectory.FullName, effectiveAppHostFile.FullName);
394
InteractionService.DisplayMessage(KnownEmojis.PageFacingUp, string.Format(CultureInfo.CurrentCulture, InteractionServiceStrings.SeeLogsAt,
ExecutionContext
.LogFilePath));
409
InteractionService.DisplayMessage(KnownEmojis.PageFacingUp, string.Format(CultureInfo.CurrentCulture, InteractionServiceStrings.SeeLogsAt,
ExecutionContext
.LogFilePath));
Commands\StopCommand.cs (1)
187
? Path.GetRelativePath(
ExecutionContext
.WorkingDirectory.FullName, appHostPath)
Commands\UpdateCommand.cs (1)
174
var hasHives =
ExecutionContext
.GetPrHiveCount() > 0;