Hello,
Does adding a reference to the project have any negative effect on the program exe (e.g. in terms of speed, size, ...)
I have a console application in which I need to know the actual path of the executable on the hard disk. The only way I could find was to use System.Windows.Forms.Application.StartupPath. But this is the only thing that I'm using from System.Windows.Forms. Is there any other way to get the StartupPath without adding the System.Windows.Forms reference to my console application
thank you,
--mehrdad.

Overhead of adding references
Jean-Michel Hervé
This should work:
Assembly
.GetExecutingAssembly().CodeBaseLesleyW