Main Site Documentation

How do I access GHIElectronics.NETMF in VC# 2010 Express?


I want to create a gadgeteer project, with a GHI spider, button, and Display T35.
I have it working except for some math.

I have
Microsoft .NET Micro Framework SDK v4.1 Version 4.1.2821.0
Microsoft Visual C# 2010
GHI NETMF v4.1 and .NET Gadgeteer Package updated today.

I want to use trig functions in

When I try to add
using GHIElectronics.
The only completion is Gadgeteer.

How do I access the GHIElectronics.NETMF.System namespace?


you need to add a reference to the project.


As Mike alluded to, the USING statement in your code is only part of the story. Adding the reference adds the DLL to the project, which allows your code to call those functions. By having that reference loaded, the autocomplete will work when you start typing your USING.

The USING statement is a shortener for the namespaces, so if you didn’t want to add the USING you can say GHIElectronics.NETMF.System.MathEx.cos() (or whatever function you want)