Skip to content

Instantly share code, notes, and snippets.

@fresky
Created July 24, 2012 07:55
Show Gist options
  • Save fresky/3168694 to your computer and use it in GitHub Desktop.
Save fresky/3168694 to your computer and use it in GitHub Desktop.
Get the directory of the application
Console.WriteLine(System.AppDomain.CurrentDomain.BaseDirectory);
Console.WriteLine(System.IO.Path.GetDirectoryName(System.Diagnostics.Process.GetCurrentProcess().MainModule.FileName));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment