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);
 
Back
Top