Export (0) Print
Expand All

/nowarn

Suppresses the compiler's ability to generate warnings.

/nowarn

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.

Example

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

Show:
© 2014 Microsoft