Returns application's startup path
WinForms:
Path.GetDirectoryName(Application.ExecutablePath);
WPF:
AppDomain.CurrentDomain.BaseDirectory
Console:
string path = new Uri(Path.GetDirectoryName(Assembly.GetExecutingAssembly().CodeBase)).LocalPath;