I've some library code that is used by both console and WPF apps. In the library code, there are some Console.Read()
calls. I only want to do those input reads if the app is a console app not if it's a GUI app - how to tell in the dll if the app has a console?