Dela via


AddTypeCommand.CompilerOptions Property

Definition

Roslyn command line parameters. https://github.com/dotnet/roslyn/blob/master/docs/compilers/CSharp/CommandLine.md

Parser options: langversion:string - language version from: [enum]::GetNames([Microsoft.CodeAnalysis.CSharp.LanguageVersion]) define:symbol list - preprocessor symbols: /define:UNIX,DEBUG - CSharp

Compilation options: optimize{+|-} - optimization level parallel{+|-} - concurrent build warnaserror{+|-} - report warnings to errors warnaserror{+|-}:strings - report specific warnings to errors warn:number - warning level (0-4) for CSharp nowarn - disable all warnings nowarn:strings - disable a list of individual warnings usings:strings - ';'-delimited usings for CSharp

Emit options: platform:string - limit which platforms this code can run on; must be x86, x64, Itanium, arm, AnyCPU32BitPreferred or anycpu (default) delaysign{+|-} - delay-sign the assembly using only the public portion of the strong name key keyfile:file - specifies a strong name key file keycontainer:string - specifies a strong name key container highentropyva{+|-} - enable high-entropy ASLR.

[System.Management.Automation.Parameter(ParameterSetName="FromLiteralPath")]
[System.Management.Automation.Parameter(ParameterSetName="FromMember")]
[System.Management.Automation.Parameter(ParameterSetName="FromPath")]
[System.Management.Automation.Parameter(ParameterSetName="FromSource")]
[System.Management.Automation.ValidateNotNullOrEmpty]
public string[] CompilerOptions { get; set; }
[<System.Management.Automation.Parameter(ParameterSetName="FromLiteralPath")>]
[<System.Management.Automation.Parameter(ParameterSetName="FromMember")>]
[<System.Management.Automation.Parameter(ParameterSetName="FromPath")>]
[<System.Management.Automation.Parameter(ParameterSetName="FromSource")>]
[<System.Management.Automation.ValidateNotNullOrEmpty>]
member this.CompilerOptions : string[] with get, set
Public Property CompilerOptions As String()

Property Value

String[]
Attributes

Applies to