Skip to content
Loading
  • Muhammad Imran Ansari
    +1
    //This path contains the .exe file
    string exePath = System.Reflection.Assembly.GetEntryAssembly().Location;
    +1
  • Md Sarfaraj
    +1
    Hello Kirti,
     
    Check out the below link maybe it will help you.
     
    Link: https://stackoverflow.com/questions/60567960/how-to-get-the-path-of-the-directory-where-the-exe-file-for-a-net-core-console 
    +1