NGWS SDK Documentation  

This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!

HxLink DID NOT INITIALIZE

/warn (Specify Warning Level)

Specifies the warning level, which controls how warnings are displayed. /warn:option

Arguments

option
The minimum warning level you want displayed for the build. Valid values are 0-4:

Warning level Meaning
0 Turns off emission of all warning messages.
1 Displays severe warning messages.
2 Displays level 1 warnings plus certain, less-severe warnings, such as warnings about hiding class members.
3 Displays level 2 warnings plus certain, less-severe warnings, such as warnings about expressions that always evaluate to true or false.
4 Displays all level 3 warnings plus informational warnings. This is the default warning level at the command line.

Remarks

Use /warnaserror to treat all warnings as errors.

/w is the short form of /warn.

Note The /warn option has not yet been implemented in the Visual Basic command line compiler.

Example

Compile in.vb and have the compiler only display level 1 warnings:

vbc /warn:1 in.vb

See Also

Visual Basic Compiler Options | /warnaserror