Share via


JScript Compiler Options Listed by Category

The following compiler options are sorted by category.

Compiler Options

Output Files

Option

Purpose

/out

Specifies output file name.

/target

Specifies the format of the output file using one of three options:/target:exe/target:library/target:winexe.

.NET Framework Assemblies

Option

Purpose

/autoref

Automatically references assemblies if they have the same name as an imported namespace or as a type annotation when declaring a variable.

/lib

Specifies the location of assemblies referenced via /reference.

/nostdlib

Does not import standard library (mscorlib.dll).

/reference

Imports metadata from a file that contains an assembly.

Debugging/Error Checking

Option

Purpose

/debug

Emits debugging information.

/lcid

Specifies code page for compiler messages.

/versionsafe

Helps to make sure that all overrides are explicit.

/warn

Sets warning level.

/warnaserror

Promotes warnings to errors.

Preprocessor

Option

Purpose

/define

Defines preprocessor symbols.

Resources

Option

Purpose

/linkresource

Creates a link to a managed resource.

/resource

Embeds a managed resource in an assembly.

/win32res

Inserts a Win32 resource into the output file.

Miscellaneous

Option

Purpose

@ (Specify Response File)

Specifies a response file.

/codepage

Specifies the code page to use for all source code files in the compilation.

/fast

Produces an output file optimized for speed but that does not support certain language features from previous releases.

/help, /?

Lists compiler options to stdout.

/nologo

Suppresses compiler banner information.

/platform (Visual Studio - JScript)

Specifies the platform type.

/print

Specifies whether the print statement shall be defined.

/utf8output

Displays compiler output using UTF-8 encoding.

See Also

Concepts

JScript Compiler Options Listed Alphabetically

Building from the Command Line

Other Resources

JScript Compiler Options