Console application no more console after ILMerged

c#, ilmerge

Solution

Run ILMerge with the command line option `/target:exe`

Problem

I am using ILMerge to merge the used libraries for a console application. After its merged, the resulting exe just finishes execution in a second and runs in the background(does not show its output for `Console.WriteLine`). What Can i do to actually run it as a console application ?

Original source