Determine whether assembly is a gui application
问题 I am trying to determine whether a C# assembly is a GUI or a Console application in order to build a tool which will automatically recreate lost short cuts. Currently, I have a routine which recursively steps all directories in Program Files (and the x86 directory). For each EXE it finds, the tool calls IsGuiApplication, passing the name of the EXE. From there, I create an Assembly object using LoadFrom. I want to check whether this assembly is has a GUI output, but I'm unsure how to test