Show/Hide Toolbars

XSharp

The -additionalfile commandline option allows you to include extra files in the assembly. To support this scenario the X# compiler can accept additional, non-source text files as inputs.

Syntax

-additionalfile:file  

For example, an analyzer may enforce that a set of banned terms is not used within a project, or that every source file has a certain copyright header. The terms or copyright header could be passed to the analyzer as an additional file, rather than being hard-coded in the analyzer itself.

Example

On the command line, additional files can be passed using The -additionalfile option. For example:

 

 

xsc alpha.prg -additionalfile:terms.txt