Export (0) Print
Expand All

/target

Specifies output file format.

The /target compiler option can be specified in one of three forms:

/target:exe
Creates a console .exe file.
/target:library
Creates a (.dll) code library.
/target:winexe
Creates a Windows program.

Remarks

/target causes a .NET Framework assembly manifest to be placed in an output file.

If you create an assembly, you can indicate that all or part of your code is CLS compliant with the CLSCompliantAttribute Class attribute.

import System;
[assembly:System.CLSCompliant(true)]   // specify assembly compliance

System.CLSCompliant(true) class TestClass   // specify compliance for element
{
   var i: int;
}

See Also

JScript Compiler Options

Show:
© 2014 Microsoft