Sometimes it becomes necessary to find out the folder where the current executing assembly is running. Using following code snippet, you can get it very easily –
string currentAssemblyDirectoryName = Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location);
March 17, 2008 at 3:27 pm
Thanks that was very helpgul
April 20, 2008 at 10:11 am
Hello,
I’d add the required using declaration
using System.Reflection;
Thanks & best regards,
Andreas