We recommend using Visual Studio 2017
This documentation is archived and is not being maintained.


Specifies output file format.

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


Creates a console .exe file.


Creates a (.dll) code library.


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;