/target:winexe

Creates a Windows program.

/target:winexe

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.

Compile in.cs into a Windows program:

jsc /target:winexe in.js
Was this page helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft