The Solution 1 is only good for
System.Windows.Forms
, as it uses
System.Windows.Forms.Application
, which is already not good enough, even if "Forms" tag was used in the question. There are different other ways to find out this path, and some are also not universal as they depend on how the application is hosted (it may make it unsuitable for, for example, Windows Services).
This solution I described in my past answer does not have those disadvantages:
How to find my programs directory (
executable directory),
How to find my programs directory (
current directory, "special folders").
—SA