The OpenNetCF.dll is in that directory. And the reference is pointing to that
directory.
As I said, when I first set the Copy Local to true for the reference it will
build without any errors. It is only after I close and reopen Visual Studio
that I get the error. Nothing has changed in the project between closing
visual studio and starting it again yet the project will not build. Why?
"Sergey Bogdanov" wrote:
> This problem can be caused because you have no OpenNETCF.dll in the
> directory:
> ....Microsoft Visual Studio .NET
> 2003\CompactFrameworkSDK\v1.0.5000\Windows CE
>
> The VS.NET2003 looks for this library in this directory thus make sure
> that you have it there.
>
> --
> Sergey Bogdanov
> http://www.sergeybogdanov.com
>
>
> skysailor wrote:
> > I'm using VS 2003 to build a C# program for PocketPC.
> > I'm using the OpenNetCF framework.
> > My solution has a reference to the assemblies OpenNETCF and
> > OpenNETCF.Windows.Forms.
> > If I set the property Copy Local to true for those two references it will
> > build without errors and those DLL files will be copied into the output
> > directory.
> > But if I close the project and then reopen it and buid (without making any
> > changes) it now gives a build error :-
> > "The type or namespace name 'OpenNETCF' could not be found (are you missing
> > a using directive or an assembly reference?)"
> > I get this error on the line :-
> > using OpenNETCF;
> > in every file.
> > Any help would be appreciated.
> > Thanks
> >
>