CSharpCommandLineParser.Parse Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Parses a command line.
public Microsoft.CodeAnalysis.CSharp.CSharpCommandLineArguments Parse (System.Collections.Generic.IEnumerable<string> args, string baseDirectory, string sdkDirectory, string additionalReferenceDirectories = default);
public Microsoft.CodeAnalysis.CSharp.CSharpCommandLineArguments Parse (System.Collections.Generic.IEnumerable<string> args, string? baseDirectory, string? sdkDirectory, string? additionalReferenceDirectories = default);
override this.Parse : seq<string> * string * string * string -> Microsoft.CodeAnalysis.CSharp.CSharpCommandLineArguments
Public Function Parse (args As IEnumerable(Of String), baseDirectory As String, sdkDirectory As String, Optional additionalReferenceDirectories As String = Nothing) As CSharpCommandLineArguments
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
Collaborer avec nous sur GitHub
La source de ce contenu se trouve sur GitHub, où vous pouvez également créer et examiner les problèmes et les demandes de tirage. Pour plus d’informations, consultez notre guide du contributeur.