Causes the compiler to create an executable console application.
/target:exe
-or-
/t:exe
The /target:exe option is the default when no /target option is specified. The executable file is created with a .exe extension.
Use /target:winexe to create a Windows program executable.
Unless otherwise specified with the /out option, the output file name takes the name of the input file that contains the Sub Main procedure.
Only one Sub Main procedure is required in the source code files that are compiled into a .exe file. The /main compiler option lets you specify which class contains the Sub Main procedure.
/t:exe is the short form of /target:exe.
To set /target:exe in the Visual Studio integrated development environment
To set /target:exe programmatically
Both of the following two command lines compile in.vb
, creating a console application called in.exe
:
vbc /target:exe in.vb vbc in.vb
/main | /target | /target:library | /target:module | /target:winexe |