by Vitaly Zayko
26. October 2008 19:18
It's not that easy as in WinForms:
public string GetAssemblyPath()
{
return System.IO.Path.GetDirectoryName(
System.Reflection.Assembly.GetExecutingAssembly().GetName().CodeBase);
}
Note: last back slash doesn't add!