Compiler Error CS2020

Only the first set of input files can build a target other than 'module'

In a multi-output compilation, the first output file must be built with /target:exe, /target:winexe, or /target:library. Any subsequent output files must be built with /target:module.