NGWS SDK Documentation  

This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!

HxLink DID NOT INITIALIZE

/target:exe (Create Console Application)

Causes the compiler to create an executable (EXE) console application. /target:exe

-or-

/t:exe

Remarks

The executable file will be created with the .exe extension.

Use /target:winexe/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.

When specified at the command line, all files up to the next /out, /target:winexe, or /target:library option are used to create the .exe. The /target:exe option is in effect for all files since the previous /out or /target:library option.

Only one Sub Main procedure is required in the source code files that are compiled into an .exe. The /main compiler option lets you specify which class contains the Sub Main procedure.

Example

Each of the following command lines will compile in.vb, creating a Windows program called in.exe:

vbc /target:winexe in.vb
vbc in.vb

See Also

/target (Specify Output File Format) | Visual Basic Compiler Options