Compile errors in VB.net project

Apr 11, 2016 at 4:50 PM
I am getting these compile errors:

Error 1 Type 'OpenNETCF.Net.Networking' is not defined.
Also
.Net.AdapterCollection, is not defined.
.Net.Adapter, is not defined.
.Net.AccessPoint is not defined.
.Net.AccessPointCollection is not defined.

I have OpenNETCF.dll and OpenNETCF.Net.dll in the References.
I have
Imports OpenNETCF.Net
Imports OpenNETCF.Net.Network
Imports OpenNETCF.Net.NetworkInformation

The compile errors relate to:
Dim myNetworkInstance As OpenNETCF.Net.Networking
Dim myAdapterCollection As OpenNETCF.Net.AdapterCollection
Dim myAdapter As OpenNETCF.Net.Adapter
Dim myAccessPointCollection As OpenNETCF.Net.AccessPointCollection
Dim myAccessPoint As OpenNETCF.Net.AccessPoint
Dim mtest As OpenNETCF.Net.NetworkInformation.AccessPoint
(and the rest of the code as below).
which is some code I got from the downloads section.

How can I resolve the compile errors?

Thanks in advance.
Private Sub TestOpenNetCF()
    Dim myNetworkInstance As OpenNETCF.Net.Networking
    Dim myAdapterCollection As OpenNETCF.Net.AdapterCollection
    Dim myAdapter As OpenNETCF.Net.Adapter
    Dim myAccessPointCollection As OpenNETCF.Net.AccessPointCollection
    Dim myAccessPoint As OpenNETCF.Net.AccessPoint
    Dim mtest As OpenNETCF.Net.NetworkInformation.AccessPoint

    Dim strTemp As String = ""

    myAdapterCollection = myNetworkInstance.GetAdapters
    myAdapter = myAdapterCollection(0)

    If myAdapter.IsWireless Then

        myAccessPointCollection = myAdapter.PreferredAccessPoints()

        myAccessPoint = myAccessPointCollection(0)

        strTemp = myAdapter.AssociatedAccessPoint

        'shows the name of the Access point (SSID)

        strTemp = BitConverter.ToString(myAccessPoint.MacAddress)

        'shows the MAC address of the Access point

        strTemp = BitConverter.ToString(myAdapter.MacAddress)

        'shows the MAC address of the adapter

        strTemp = myAdapter.SignalStrengthInDecibels

        'shows the signal strength of the Access point

        strTemp = myAdapter.CurrentIpAddress

        'shows the current IP address of the wireless adapter

    End If

End Sub