Export (0) Print
Expand All


Suppresses the compiler's ability to generate warnings.


To set /nowarn in the Visual Studio integrated development environment

  1. Open the project's Property Pages dialog box. For details, see <Projectname> Property Pages Dialog Box.
  2. Click the Configuration Properties folder.
  3. Click the Build property page.
  4. Modify the Enable build warnings property.

To set /nowarn programmatically

  • See WarningLevel Property.


The following code compiles t2.vb and does not display warnings:

vbc /nowarn t2.vb

See Also

Visual Basic Compiler Options | Sample Compilation Command Lines

© 2015 Microsoft