I found solutions for Windows Forms with AppDomain but what would be the equivalent for a WPF Application object?
Application
One method:
System.AppDomain.CurrentDomain.BaseDirectory
Another way to do it would be:
System.IO.Path.GetDirectoryName(System.Diagnostics.Process.GetCurrentProcess().MainModule.FileName)
1.4m articles
1.4m replys
5 comments
57.0k users