Udostępnij za pośrednictwem


Building from the Command Line (Visual Basic)

A Visual Basic project is made up of one or more separate source files. During the process known as compilation, these files are brought together into one package—a single executable file that can be run as an application.

Visual Basic provides a command-line compiler as an alternative to compiling programs from within the Visual Studio integrated development environment (IDE). The command-line compiler is designed for situations in which you do not require the full set of features in the IDE—for example, when you are using or writing for computers with limited system memory or storage space.

When compiling from the command line, you must explicitly reference the Microsoft Visual Basic run-time library through the /reference compiler option.

To compile source files from within the Visual Studio IDE, choose the Build command from the Build menu. To compile project (.vbproj) files at the command line, see Devenv Command Line Switches.

In This Section