According to the doc of GetEntryAssembly, it will happen any time the top level exe is not managed code.

Since this hack assumes anyway that all our code is in output/{debug/release}, I wonder whether it would be better to use GetExecutingAssembly.location, like ReflectionHelper?