Tags: | Categories: Code Snippets Posted by Vitaly Zayko on 10/26/2008 7:18 PM | Comments (0)

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!

Pingbacks and trackbacks (1)+

Comments are closed