Issue with System.IO

I’m trying to write to a log file and the only options I have under System.IO are IOException, Ports{}, SeekOrigin and Stream. Where is everything else such as File, Directory & Path? I’m trying to write to a log file on the SD card. Using Framework 4.3

Thanks in advance

You’re probably just missing a dll reference. .NET MicroFramework splits a lot of core stuff like that out into various dlls so that you can keep your application size to just what’s needed. Right click on references and add:

I wrongly assumed that if there was a using statement in the code template that the references would be there too. It was missing a reference to System.IO. It already had SPOT.IO.


Heh, yeah, those project templates are not the best. We’re working on cleaning that up a bit.