Monday, March 12, 2012

How to get the current assembly path?


*** Program is the name of the class 
string assemblyPath = Path.GetDirectoryName(typeof(Program).Assembly.Location);
Console.WriteLine(assemblyPath);
Console.ReadKey();

No comments:

Post a Comment