How do I find out what directory my console app is running in with C#?
To get the directory where the .exe file is:
AppDomain.CurrentDomain.BaseDirectory
To get the current directory:
Environment.CurrentDirectory
1.4m articles
1.4m replys
5 comments
57.0k users