build error The type or namespace name 'OpenNETCF' could not be found

D

datamodel

I have two smartdevice projects both make reference to :
using OpenNETCF;
using OpenNETCF.Drawing;
using OpenNETCF.Windows.Forms;

One builds fine the other gives me the error message in the subject of
this post.
Obviously i'm missing some build option or project property to set. I
was not present
at the creation of the first project (where the build works) ,so I
don't know which options
to set. Can someone Please help me to be able to build the second
project without this error message? Thanks.
 
D

Daniel Moth

To use an assembly you need to do two things:
1. Reference the assembly (through project properties)
2. Fully qualify the types in your code (or using the namespaces at the top
of the code file)

It sounds like you missed the first step.

Cheers
Daniel
 
D

datamodel

Absolutely correct. I missed Adding the proper References
to my project. Problem solved by following these steps:

1. select Project>Add references
2. in the dialog select Browse
3. Select the required OpenNetCF dll's from the path
C:\Program Files\Microsoft Visual Studio .NET
2003\CompactFrameworkSDK\v1.0.5000\Windows CE

Now the application builds succesfully.

Thank you very much Daniel.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top