31 references to ProcessPath
aspire (11)
Bundles\BundleService.cs (1)
57var processPath = Environment.ProcessPath;
Commands\AppHostLauncher.cs (1)
194var dotnetPath = Environment.ProcessPath ?? "dotnet";
Commands\SetupCommand.cs (1)
52var processPath = Environment.ProcessPath;
Commands\UpdateCommand.cs (3)
100var processPath = Environment.ProcessPath; 291var currentExePath = Environment.ProcessPath; 340var currentExePath = Environment.ProcessPath;
Layout\LayoutDiscovery.cs (1)
142var cliPath = Environment.ProcessPath;
src\Shared\BundleDiscovery.cs (1)
339var processPath = Environment.ProcessPath;
Utils\AspireRepositoryDetector.cs (1)
62var processPath = Environment.ProcessPath;
Utils\CliUpdateNotifier.cs (2)
91/// The detection works by examining <see cref="Environment.ProcessPath"/>, which returns the full path to the current executable. 99var processPath = Environment.ProcessPath;
Aspire.Hosting (1)
src\Shared\BundleDiscovery.cs (1)
339var processPath = Environment.ProcessPath;
dotnet (8)
Commands\Workload\Install\FileBasedInstaller.cs (1)
60_dotnetDir = dotnetDir ?? Path.GetDirectoryName(Environment.ProcessPath);
Commands\Workload\Install\WorkloadInstallerFactory.cs (2)
31dotnetDir = string.IsNullOrWhiteSpace(dotnetDir) ? Path.GetDirectoryName(Environment.ProcessPath) : dotnetDir; 99dotnetDir ??= Path.GetDirectoryName(Environment.ProcessPath);
Commands\Workload\Install\WorkloadManifestUpdater.cs (1)
64var dotnetPath = Path.GetDirectoryName(Environment.ProcessPath);
Commands\Workload\Install\WorkloadResolverFactory.cs (1)
36result.DotnetPath = Path.GetDirectoryName(Environment.ProcessPath);
Commands\Workload\Search\WorkloadSearchVersionsCommand.cs (1)
75dotnetDir: Path.GetDirectoryName(Environment.ProcessPath),
Commands\Workload\WorkloadInfoHelper.cs (2)
36DotnetPath = dotnetDir ?? Path.GetDirectoryName(Environment.ProcessPath)!; 161var dotnetPath = dotnetDir ?? Path.GetDirectoryName(Environment.ProcessPath);
Microsoft.Build.Framework (1)
EnvironmentUtilities.cs (1)
64return Environment.ProcessPath;
Microsoft.CodeAnalysis.Workspaces.MSBuild (1)
MSBuild\BuildHostProcessManager.cs (1)
177static 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)
src\sdk\src\RazorSdk\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)
227return procPid == Interop.procfs.ProcPid.Self ? Environment.ProcessPath :
System\Diagnostics\ProcessUtils.Unix.cs (1)
348string? 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;