Export (0) Print
Expand All

Invoking the Command-Line Compiler

You can invoke the command-line compiler by typing the name of its executable file at the command line, also known as the MS-DOS prompt.

When compiling from the command line, you must explicitly reference the Microsoft Visual Basic Run-Time Library through the /reference compiler option.

To invoke the compiler

  • At the command line, type vbc.exe /reference:Microsoft.VisualBasic.dll, and then press ENTER.

You may need to adjust your path if you want to invoke the compiler from a specific subdirectory on your computer. For example, if you stored your executables in a directory called "SourceFiles", you would open the command prompt, type "cd SourceFiles" to change to that directory, and then type vbc.exe.

See Also

Visual Basic Compiler Options | Conditional Compilation Overview | /reference

Show:
© 2014 Microsoft