Getting current assembly path
Posted on 1245820969|%e %b %Y, %H:%M %Z|agohover under c# code .net
Here is the small code snippet to get the current assembly path or full name:
/// <summary> /// Returns the path (with ending backslash) of current executing assembly /// </summary> /// <returns>Path of executing assembly</returns> public static string AssemblyPath () { return Path.GetDirectoryName (Assembly.GetExecutingAssembly ().Location) + Path.DirectorySeparatorChar; } /// <summary> /// Returns the full name including path, file name and extension of current executing assembly /// </summary> /// <returns>Full name of current executing assembly</returns> public static string AssemblyFullName () { return Assembly.GetExecutingAssembly ().Location; }
I am so grateful to read this such a wonderful post.
http://www.nikerbo.com
http://www.nikerko.com
http://www.nikerok.com
http://www.jordanhut.com
Write very good! Back Up.
Discount Sunglasses http://www.bestsunglassesbrand.com
ray ban sunglasses http://www.sunglassko.com
Sunglasses for Glasses http://www.worstsunglassesbrand.com
Discount Nike Sneakers http://www.nikerwo.com
Buy Moncler Jackets http://frbestmoncler.com
Post preview:
Close preview