How to get path of application in c#?

How to get path of application in c#? Best way to get application folder path Application. StartupPath. System. IO. Path. GetDirectoryName( System. AppDomain. CurrentDomain. BaseDirectory. System. IO. Directory. GetCurrentDirectory() Environment. CurrentDirectory. System. IO. Path. GetDirectoryName( System. System. IO. Path. GetDirectory(Application. How do I find the path of an app? Now, Read more…