Description
Type of issue
Missing information
Description
The formatting of command line arguments when populating ProcessStartInfo.Arguments
is extremely complicated. The current documentation does not describe the full set of parsing rules.
The documentation for Environment.GetCommandLineArgs does describe the rules more fully (though, still confusingly). I recommend duplicating the description of parsing rules from Environment.GetCommandLineArgs
on the documentation page for ProcessStartInfo.Arguments
or, at the very least, linking to them.
For examples of the confusion the parsing rules cause, see:
https://stackoverflow.com/questions/5510343/escape-command-line-arguments-in-c-sharp
https://stackoverflow.com/questions/15365038/how-processstartinfo-argument-consider-arguments
Page URL
Content source URL
https://github.com/dotnet/dotnet-api-docs/blob/main/xml/System.Diagnostics/ProcessStartInfo.xml
Document Version Independent Id
a5723e00-a422-7766-5f8e-d7d4986add0a