42 references to ProcessPath
aspire (23)
Acquisition\InstallationDiscovery.cs (4)
64=> DescribeSelf(Environment.ProcessPath, pathHits: null); 70/// without manipulating <see cref="Environment.ProcessPath"/>. 117=> DiscoverAllAsync(Environment.ProcessPath, cancellationToken); 123/// manipulating <see cref="Environment.ProcessPath"/> globally.
Acquisition\WingetFirstRunProbe.cs (1)
47var processPath = Environment.ProcessPath;
Bundles\BundleService.cs (3)
67/// Overrides <see cref="Environment.ProcessPath"/> for version fingerprinting. 200var processPath = ProcessPathOverride ?? Environment.ProcessPath; 800processPath ??= Environment.ProcessPath;
Commands\AppHostLauncher.cs (1)
356var dotnetPath = Environment.ProcessPath ?? "dotnet";
Commands\InstallationInfoOutput.cs (2)
117var processPath = Environment.ProcessPath; 211Path = Environment.ProcessPath ?? string.Empty,
Commands\SetupCommand.cs (1)
47var processPath = Environment.ProcessPath;
DotNet\DotNetCliRunner.cs (1)
613var processPath = Environment.ProcessPath;
Layout\LayoutDiscovery.cs (2)
49/// Overrides <see cref="Environment.ProcessPath"/> for relative-layout discovery. 187var cliPath = ProcessPathOverride ?? Environment.ProcessPath;
Packaging\PackagingService.cs (1)
117_processPathProvider = processPathProvider ?? (() => Environment.ProcessPath);
Program.cs (2)
65return CliPathHelper.GetAspireHomeDirectory(processPath ?? Environment.ProcessPath); 1059logger.LogInformation("Aspire CLI path: {CliPath}", Environment.ProcessPath);
src\Shared\BundleDiscovery.cs (1)
375var processPath = Environment.ProcessPath;
Utils\AspireRepositoryDetector.cs (1)
74var processPath = Environment.ProcessPath;
Utils\CliPathHelper.cs (2)
46var effectiveProcessPath = processPath ?? Environment.ProcessPath; 220/// returns <see langword="null"/>. Meanwhile, <see cref="Environment.ProcessPath"/>
Utils\IProcessPathProvider.cs (1)
16public string? ProcessPath => Environment.ProcessPath;
aspire-managed (1)
src\Shared\BundleDiscovery.cs (1)
375var processPath = Environment.ProcessPath;
Aspire.Cli.Tests (2)
Acquisition\InstallationDiscoveryDiscoverAllTests.cs (1)
954var path = Environment.ProcessPath!;
DotNet\DotNetCliRunnerTests.cs (1)
323if (Environment.ProcessPath is { } processPath && DotNetCliRunner.ShouldForwardProcessPathAsAspireCliPath(processPath))
Aspire.Hosting (1)
src\Shared\BundleDiscovery.cs (1)
375var processPath = Environment.ProcessPath;
dotnet-aot (4)
parent\dotnet\Commands\Workload\Install\WorkloadManifestUpdater.cs (1)
35var dotnetPath = Path.GetDirectoryName(Environment.ProcessPath);
parent\dotnet\Commands\Workload\WorkloadInfoHelper.cs (2)
45DotnetPath = dotnetDir ?? Path.GetDirectoryName(Environment.ProcessPath)!; 195var dotnetPath = dotnetDir ?? Path.GetDirectoryName(Environment.ProcessPath);
parent\dotnet\Commands\Workload\WorkloadInstallDetector.cs (1)
36dotnetDir = string.IsNullOrWhiteSpace(dotnetDir) ? Path.GetDirectoryName(Environment.ProcessPath) : dotnetDir;
Microsoft.Build.Framework (1)
EnvironmentUtilities.cs (1)
64return Environment.ProcessPath;
Microsoft.CodeAnalysis.Workspaces.MSBuild (1)
MSBuild\BuildHostProcessManager.cs (1)
188static string GetProcessPath() => Environment.ProcessPath ?? throw new InvalidOperationException("Unable to determine the path of the current process.");
Microsoft.DotNet.Cli.Definitions (1)
src\sdk\src\Resolvers\Microsoft.DotNet.NativeWrapper\EnvironmentProvider.cs (1)
136currentProcessPath = Environment.ProcessPath;
Microsoft.DotNet.Cli.Utils (1)
Muxer.cs (1)
58string? processPath = Environment.ProcessPath;
Microsoft.DotNet.NativeWrapper (1)
EnvironmentProvider.cs (1)
136currentProcessPath = Environment.ProcessPath;
Microsoft.NET.Sdk.Razor.Tasks (1)
parent\Tool\ServerProtocol\ServerConnection.cs (1)
288expectedPath = System.Environment.ProcessPath;
rzc (1)
ServerProtocol\ServerConnection.cs (1)
288expectedPath = System.Environment.ProcessPath;
System.Diagnostics.Process (2)
System\Diagnostics\Process.Linux.cs (1)
208return procPid == Interop.procfs.ProcPid.Self ? Environment.ProcessPath :
System\Diagnostics\ProcessUtils.Unix.cs (1)
371string? path = Environment.ProcessPath;
System.IO.IsolatedStorage (1)
System\IO\IsolatedStorage\Helper.cs (1)
129location = Environment.ProcessPath;
System.Private.CoreLib (1)
src\runtime\src\libraries\System.Private.CoreLib\src\System\AppContext.AnyOS.cs (1)
22string? path = Environment.ProcessPath;