public static string GetOutputExtension(OutputType outputType) { switch (outputType) { case OutputType.Library: return ".dll"; case OutputType.Exe: case OutputType.WinExe: return ".exe"; } throw new InvalidOperationException(); }