/target
This documentation is archived and is not being maintained.

/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.

/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;
}
Show:
© 2016 Microsoft