How do you get the application path in Compact .NET?

  • Thread starter Thread starter Dan
  • Start date Start date
System.IO.Path.GetDirectoryName(System.Reflection.Assembly.GetExecutingAssembly().GetName().CodeBase)

Cheers
Daniel
 
Use GetCallingAssembly, not GetExecutingAssembly becasue if you're using it
in a GAC-installed DLL, then you'll get \Windows and not the app folder.
 
Back
Top