Zayko in the Net

Personal blog of Vitaly Zayko

NAVIGATION - SEARCH

How to get Assembly path in .NET Compact Framework? (C#)

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)+

Add comment