Ethernet class not recognized in Visual Studio

I am trying to use the following code: ethernet.UseDHCP(); but Visual studio does not recognize the class “Ethernet”. I have included the following:
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;
using Gadgeteer.Modules.GHIElectronics;
using Microsoft.SPOT.Net.NetworkInformation;

What am I missing?

You will have to include the Ethernet module using the designer or declare it manually…

Thanks Both. I am using the Fez Cerberus connecting the Ethernet ENC28 module. I did forget to add the Ethernet module to the designer but when trying to drag it from the toolbox it gives me the message “The module could not be added” - A required library could not be found". It shows the module in the toolbox as "Ethernet_ENC28 Premium). Any idea?

Also - my project is building a web server

Make sure to load Firmware with Ethernet. There are two flavors of the firmware.

yes, check the Ethernet install in Fez config. Also - running VS 2012 Premium and SDK 4.3 (RTM)

BTW - the developer guide for Ethernet ENC28 says not to add the module to the surface designer - https://www.ghielectronics.com/docs/68/ethernet-enc28-module . is there some place else I should add/declare it ?

Yes, you can just define it in your code directly, like you define an instance of any other class.

Since you are using an OSHS you don’t need to add the module in the designer nor declare it, the firmware is doing it for you… just use the code below directly:
https://www.ghielectronics.com/community/codeshare/entry/606

Any issues search for ENC28 and hydra…

Edit: and a server example here:
https://www.ghielectronics.com/docs/30/networking

Cheers