15 references to GetCommandLineArgs
aspire (1)
Commands\AppHostLauncher.cs (1)
360var entryAssemblyPath = Environment.GetCommandLineArgs().FirstOrDefault();
crossgen2 (2)
parent\parent\Common\CommandLineHelpers.cs (2)
181details.Add(Environment.GetCommandLineArgs()[0]); 186details.Add(System.Diagnostics.FileVersionInfo.GetVersionInfo(Environment.GetCommandLineArgs()[0]).ToString());
ilc (2)
parent\parent\Common\CommandLineHelpers.cs (2)
181details.Add(Environment.GetCommandLineArgs()[0]); 186details.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.Forms (2)
Microsoft\VisualBasic\ApplicationServices\ConsoleApplicationBase.vb (2)
46''' This function differs from <see cref="Environment.GetCommandLineArgs"/> 54Dim envArgs As String() = Environment.GetCommandLineArgs
PresentationFramework (1)
System\Windows\StartupEventArgs.cs (1)
55string[] args = Environment.GetCommandLineArgs();
System.CommandLine (3)
RootCommand.cs (3)
74/// <item><description>The <c>System.CommandLine.ExecutableName</c> value read from <see cref="AppContext"/>, when there is no managed entry point (<see cref="Assembly.GetEntryAssembly"/> returns <see langword="null"/>) - most notably when hosted as a NativeAOT native library. In that case <see cref="Environment.GetCommandLineArgs"/> reflects the host process rather than this component. The value is emitted into the app's <c>runtimeconfig.json</c> by the <c>System.CommandLine</c> build targets and defaults to the assembly name.</description></item> 75/// <item><description>The file name (without extension) of the currently running executable, from <see cref="Environment.GetCommandLineArgs"/>.</description></item> 106var args = Environment.GetCommandLineArgs();
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)
1463string[] arguments = Environment.GetCommandLineArgs();