Created
December 3, 2012 15:32
-
-
Save gigi81/4195734 to your computer and use it in GitHub Desktop.
Asp.Net get bin path
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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