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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top