You have posted this under general discussion but a specific context is necessary.
Is this standard MF API or Gadgeteer. What board are you using? Are you using MF 4.1 or 4.2 Beta?
Is this USB host or SD?
I guess I could search around and try to determine which GHI sample code you are referencing,
but that takes time. Might help if you repost your question under an appropriate forum and
give us a bit more info. At lease point us at the sample code.
system.io is already added (without it other errors appear, like persist storage)
the lines of code that say
string[] files = Directory.GetFiles(e.Volume.RootDirectory);
string[] folders = Directory.GetDirectories(e.Volume.RootDirectory);
giives the mentioned error
There is a “Clean solution” command in Visual Studio.
It is a compile time error. If clean build wouldn’t help, try to recreate the project from scratch.
I tried a blank slate re-try & got the same result…
In desperation I selected the entire list of EVERY possible references & added them ALL to to project…after about 10 minutes of the computer grinding away, they were all added & the error is gone!!!