`<OutputType>module</OutputType>` in your project file (or `/target:module` at the command line, and you get a smaller unit.