Microsoft Visual Studio provides a command line compiler for Visual Basic as an alternative to compiling a Visual Basic program from within Visual Studio.
The Visual Basic command line compiler is designed for situations when the rich environment provided by Visual Studio is not required. Application developers that prefer to work in the MS-DOS environment may wish to use a simple text editor and the command line compiler to build projects. The command line compiler is also useful when you want to automate the build process or when using computers with limited system memory.
The compiler can be invoked by typing the name of its executable (vbc.exe) on the command line. You may need to adjust your path if you want vbc.exe to be invoked from any subdirectory on your computer.
The Visual Basic command line compiler supports a complete set of compiler options that control input files, output files, assemblies, debug and preprocessor options.
vbc File.vb
vbc /target:library File.vb
vbc /nooutput File.vb
vbc /out:My.exe File.vb
vbc /target:library /out:Microsoft.WFC.UI.dll Microsoft\WFC\UI\*.vb Microsoft\WFC\Util\*.vb
vbc /debug /out:File2.exe /reference:Microsoft.WFC.UI.dll;Microsoft.WFC.InterOp.dll *.vb
vbc /define:DEBUG=1 /optimize /out:File2.exe *.vb
vbc /target:library /out:File2.dll /warn:0 /nologo /debug *.vb
vbc /target:library /out:Something.xyz *.vb
Visual Basic Compiler Options Listed Alphabetically | Visual Basic Compiler Options Listed by Category