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:winexe (Create a Windows Program)

Causes the compiler to create an executable (EXE) Windows program. /target:winexe

-or-

/t:winexe

Remarks

The target:winexe option is the default when no target option is specified. The executable file will be created with the .exe extension. A Windows program is one that provides a user interface from either the Services Framework class library or with the Win32 APIs.

Use /target:exe to create a console application.

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 until the next /out or /target option are used to create the Windows program.

Only one Sub Main procedure is required in the source code files that are compiled into a .exe. The /main compiler option lets you specify which class contains the Sub Main procedure, in cases where your code has more than one class with a Sub Main procedure.

Example

Compile in.vb into a Windows program:

vbc /target:winexe in.vb

See Also

/target | Visual Basic Compiler Options