This documentation is archived and is not being maintained.

/target:winexe

Creates a Windows program.

/target:winexe

Remarks

The /target:winexe option causes the compiler to create an executable (EXE), Windows program. The executable file will be created with the .exe extension. A Windows program is one that provides a user interface from the .NET Framework library.

Use /target:exe to create a console application.

Unless otherwise specified with the /out option, the output file name takes the name of the first source code file in the compilation of the output file.

When specified at the command line, all files until the next /out or /target option are used to create the Windows program.

/t is the short form of /target.

Example

Compile in.cs into a Windows program:

jsc /target:winexe in.js

See Also

/target | JScript Compiler Options

Show: