FEZ Dominoe: Assemblies not working

First, let me say excellent product!
Now, you only have to work out the bugs…

I am using Visual C# express with SP1 and am having trouble with assemblies not found.
Page 30/149 of the Beginners guide to NETMF-1.pdf says to add the following assemblies.
GHIElectronics.NETMF.Hardware
GHIElectronics.NETMF.IO
GHIElectronics.NETMF.System
Microsoft.SPOT.Hardware
Microsoft.SPOT.Native
Microsoft.SPOT.Hardware.SeriaPort
Microsoft.SPOT.IO
mscorlib
System
System.IO
FEZDomino_GHIElectronics.NETMF.FEZ

In Solution Explorer, I right click on References and Add References
All the references are added, but assemblies are not found

At the top of my Program.cs file, I have …
using System;
using System.IO;
using Microsoft.SPOT;
using GHIElectronics.NETMF.Hardware;
using GHIElectronics.NETMF.IO;
using GHIElectronics.NETMF.System;
using Microsoft.SPOT.Hardware;
using Microsoft.SPOT.Native;
using Microsoft.SPOT.Hardware.SerialPort;
using Microsoft.SPOT.IO;
using mscorlib;
using FEZDomino_GHIElectronics.NETMF.FEZ;

My project will not build/compile.

Here are the errors I am getting
(even though the assemblies are listed under references in the solution explorer):

Error 1 The type or namespace name ‘Native’ does not exist in the namespace ‘Microsoft.SPOT’ (are you missing an assembly reference?) C:\Users\Maestro\Documents\Visual Studio 2008\Projects\test1\test1\Program.cs 8
Error 2 The type or namespace name ‘SerialPort’ does not exist in the namespace ‘Microsoft.SPOT.Hardware’ (are you missing an assembly reference?) C:\Users\Maestro\Documents\Visual Studio 2008\Projects\test1\test1\Program.cs 9
Error 3 The type or namespace name ‘mscorlib’ could not be found (are you missing a using directive or an assembly reference?) C:\Users\Maestro\Documents\Visual Studio 2008\Projects\test1\test1\Program.cs 11
Error 4 The type or namespace name ‘FEZDomino_GHIElectronics’ could not be found (are you missing a using directive or an assembly reference?) C:\Users\Maestro\Documents\Visual Studio 2008\Projects\test1\test1\Program.cs 12

I have been using Visual Studio for 5 years and underdstand exactly what your manual is telling me to do. Can you tell me why I am getting these errors ? (and Yes, I followed the setup instructions in 5.1, which worked perfectly).

Also, page 31/149 you mis-spelled Microsoft.SPOT.Hardware.SeriaPort.
Should be SerialPort… L is missing…

Hello Larry,

I’m also a bit new and i got my own FEZ_domino after i was a bit disappointed that my older Dev.board not supported was anymore, although he used the same processor chip.
I did not found any problems you talked about.

Are you sure you have installed all the needed libraries ? see chapter 5.1. System Setup about this.

Problem solved - I used the ‘view’ > ‘object browser’ to view the assemblies in the DLLs.

The documentation on page 30 of “Beginners guide to NETMF-1.pdf” is flat out wrong. Once the references have been added to the project, import the following assemblies into your project using the following syntax.

using System;
using System.IO;
using System.IO.Ports;
using GHIElectronics.NETMF.FEZ;
using GHIElectronics.NETMF.Hardware;
using GHIElectronics.NETMF.IO;
using GHIElectronics.NETMF.System;
using Microsoft.SPOT;
using Microsoft.SPOT.Hardware;
using Microsoft.SPOT.IO;
using Microsoft.SPOT.Messaging;
using Microsoft.SPOT.Touch;

Also notice that intellisense will prompt you for the assembly name while you are typing the using clause.

Lastly, if you can not find the appropriate ‘using’ clause, you can ‘view’ > ‘object broser’ to display the DLLs and the assemblies contained in those DLLs. These are the assembly names to be put in the ‘using’ clause.

Hi Nielsnl,

Thanks for your reply. It took me a little while to figure out my problem, but I finally got it. Thanks for your post ! Good luck on your project. If I can be a sounding board for you, give me a shout at larryscott2004@ yahoo.com

Thanks,
Larry Scott

The assemblies will show in the list and you do not have to browse for them. It seem you have a problem in your setup.

Also, you do not have to pull in every namespace if you do not need them

[quote=“LarryScott”]…
The documentation on page 30 of “Beginners guide to NETMF-1.pdf” is flat out wrong. …

using System;
using System.IO;
using System.IO.Ports;
using GHIElectronics.NETMF.FEZ;
using GHIElectronics.NETMF.Hardware;
using GHIElectronics.NETMF.IO;
using GHIElectronics.NETMF.System;
using Microsoft.SPOT;
using Microsoft.SPOT.Hardware;
using Microsoft.SPOT.IO;
using Microsoft.SPOT.Messaging;
using Microsoft.SPOT.Touch;

…[/quote]

Ran into problems with NETMF missing; I was using what I believe to be the old PDF Beginners Guide? The tinyclr wiki tutorials online (GHI Electronics – Where Hardware Meets Software) were helpful. And like wikipedia they are set up for users to edit themselves to fix issues…

You replied to a post that is over 2 years old :slight_smile:

Please get the latest book. it was updated few minutes ago.