Export (0) Print
Expand All

/quiet

Prevents the compiler from displaying code for syntax-related errors and warnings.

/quiet

By default, /quiet is not in effect. When the compiler reports a syntax-related error or warning, it also outputs the line from source code. For applications that parse compiler output, it may be more convenient for the compiler to output only the text of the diagnostic.

In the following example, Module1 outputs an error that includes source code when compiled without /quiet.

Module Module1
    Sub Main()
        x()
    End Sub
End Module

Output:

E:\test\t2.vb(3) : error BC30451: Name 'x' is not declared.

x

~

Compiled with /quiet, the compiler outputs only the following:

E:\test\t2.vb(3) : error BC30451: Name 'x' is not declared.

NoteNote

The /quiet option is not available from within the Visual Studio development environment; it is available only when compiling from the command line.

The following code compiles T2.vb and does not display code for syntax-related compiler diagnostics:

vbc /quiet t2.vb

Community Additions

ADD
Show:
© 2014 Microsoft