The name 'sdCard' does not exist in the current context

Using the CerbuinoBee I am trying to access the SD card.

When I call sdCard.MountFileSystem();

I get the following error:

The name ‘sdCard’ does not exist in the current context

What assembly reference do I need to add? Where can I find this information? Thank you.

Easiest option is to add all GHI.OSHW libs

I am pretty sure I do. See attached.


using System;
using System.Collections;
using System.Threading;
using Microsoft.SPOT;
using Microsoft.SPOT.Presentation;
using Microsoft.SPOT.Presentation.Controls;
using Microsoft.SPOT.Presentation.Media;
using Microsoft.SPOT.Touch;

using Gadgeteer.Networking;
using GT = Gadgeteer;
using GTM = Gadgeteer.Modules;

And you have “using” on top to add those? Please show some code?

You have latest SDK right?

Not sure if I have the right Using statements. I edited the last post with actual code. (Not sure why it wasn’t included in the first post.) Thanks.

Take a look at the very top of the reference docs please :slight_smile:
http://www.ghielectronics.com/downloads/NETMF/Library%20Documentation%20v4.2/OSHW/html/1538947c-9b68-abda-1dfa-00dee7bc674f.htm

Thanks!

I added

StorageDev.MountSD();

And that worked. I was looking for sdCard and totally overlooked the MountSD.