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