another question - GetCurrentDirectory

  • Thread starter Thread starter Matthias Heise
  • Start date Start date
M

Matthias Heise

Hello again,

does anyone know why System.IO.Directory.GetCurrentDirectory() end in an
"Unsupported Exception" in Windows CE .NET 4.1 Emulator?

Thanks

Matthias
 
Windows CE does not have the notion of current directory... get the assembly
path and use that instead...

Cheers
Daniel
 
System.IO.Path.GetDirectoryName(System.Reflection.Assembly.GetExecutingAssembly().GetName().CodeBase);
 

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