Skip to content

Instantly share code, notes, and snippets.

@gigi81
Created December 3, 2012 15:32
Show Gist options
  • Save gigi81/4195734 to your computer and use it in GitHub Desktop.
Save gigi81/4195734 to your computer and use it in GitHub Desktop.
Asp.Net get bin path
public static string BinFilesPath
{
get
{
string dllPath;
dllPath = System.Reflection.Assembly.GetExecutingAssembly().CodeBase;
dllPath = new Uri(dllPath).LocalPath;
dllPath = System.IO.Path.GetDirectoryName(dllPath);
return dllPath;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment