How do I find the application\'s path in a console application?
In Windows Forms, I can use Application.StartupPath to find the current path, but this d
Application.StartupPath
I have used
System.AppDomain.CurrentDomain.BaseDirectory
when I want to find a path relative to an applications folder. This works for both ASP.Net and winform applications. It also does not require any reference to System.Web assemblies.