13 references to GetCommandLineArgs
aspire (1)
Commands\AppHostLauncher.cs (1)
198var entryAssemblyPath = Environment.GetCommandLineArgs().FirstOrDefault();
crossgen2 (2)
src\runtime\src\coreclr\tools\Common\CommandLineHelpers.cs (2)
179details.Add(Environment.GetCommandLineArgs()[0]); 184details.Add(System.Diagnostics.FileVersionInfo.GetVersionInfo(Environment.GetCommandLineArgs()[0]).ToString());
dotnet (1)
Commands\Workload\WorkloadHistoryRecorder.cs (1)
25HistoryRecord.CommandLineArgs = Environment.GetCommandLineArgs();
ilc (2)
src\runtime\src\coreclr\tools\Common\CommandLineHelpers.cs (2)
179details.Add(Environment.GetCommandLineArgs()[0]); 184details.Add(System.Diagnostics.FileVersionInfo.GetVersionInfo(Environment.GetCommandLineArgs()[0]).ToString());
Microsoft.Extensions.DotNetDeltaApplier (1)
src\sdk\src\Dotnet.Watch\HotReloadAgent.Host\StartupHook.cs (1)
37var processPath = Environment.GetCommandLineArgs().FirstOrDefault();
Microsoft.TestPlatform.PlatformAbstractions (1)
common\Tracing\PlatformEqtTrace.cs (1)
394string[] args = Environment.GetCommandLineArgs();
Microsoft.VisualBasic.Core (1)
Microsoft\VisualBasic\Interaction.vb (1)
61LengthOfAppName = Environment.GetCommandLineArgs(0).Length
PresentationFramework (1)
System\Windows\StartupEventArgs.cs (1)
55string[] args = Environment.GetCommandLineArgs();
System.CommandLine (1)
RootCommand.cs (1)
77public static string ExecutablePath => _executablePath ??= Environment.GetCommandLineArgs()[0];
System.Private.CoreLib (1)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Environment.cs (1)
125public static string CommandLine => PasteArguments.Paste(GetCommandLineArgs(), pasteFirstArgumentUsingArgV0Rules: true);
System.Windows.Forms (1)
System\Windows\Forms\Application.cs (1)
1309string[] arguments = Environment.GetCommandLineArgs();