CommandLineParser.Parse Method

Definition

Parses a command line.

public:
 Microsoft::CodeAnalysis::CommandLineArguments ^ Parse(System::Collections::Generic::IEnumerable<System::String ^> ^ args, System::String ^ baseDirectory, System::String ^ sdkDirectory, System::String ^ additionalReferenceDirectories);
public Microsoft.CodeAnalysis.CommandLineArguments Parse (System.Collections.Generic.IEnumerable<string> args, string baseDirectory, string sdkDirectory, string additionalReferenceDirectories);
public Microsoft.CodeAnalysis.CommandLineArguments Parse (System.Collections.Generic.IEnumerable<string> args, string baseDirectory, string? sdkDirectory, string? additionalReferenceDirectories);
public Microsoft.CodeAnalysis.CommandLineArguments Parse (System.Collections.Generic.IEnumerable<string> args, string baseDirectory, string? sdkDirectory, string additionalReferenceDirectories);
member this.Parse : seq<string> * string * string * string -> Microsoft.CodeAnalysis.CommandLineArguments
Public Function Parse (args As IEnumerable(Of String), baseDirectory As String, sdkDirectory As String, additionalReferenceDirectories As String) As CommandLineArguments

Parameters

args
IEnumerable<String>

A collection of strings representing the command line arguments.

baseDirectory
String

The base directory used for qualifying file locations.

sdkDirectory
String

The directory to search for mscorlib, or null if not available.

additionalReferenceDirectories
String

A string representing additional reference paths.

Returns

a CommandLineArguments object representing the parsed command line.

Applies to