Show/Hide Toolbars

XSharp

The -nowarn option lets you suppress the compiler from displaying one or more warnings. Separate multiple warning numbers with a comma.

Syntax

-nowarn:number1[,number2,...]  

Arguments

number1, number2Warning number(s) that you want the compiler to suppress.

Remarks

You should only specify the numeric part of the warning identifier. For example, if you want to suppress XS0028, you could specify -nowarn:28.

 

To set this compiler option in the Visual Studio development environment

1.Open the project's Properties page.

2.Click the Build property page.

3.Modify the "Suppress Specific Warnings" property.

4.Click here to see the property page