OpenNETCF problem

A

Art

Anyone use OpenNETCF !
I try to copy the string to clipboard. Someone says that .NetCF do not
support clipboard class, and recommend the OpenNETCF.
When I install, add the Reference, edit the code, everything go fine, but
errors come when run like this,

Error: The dependency 'mscorlib, Version=1.0.5000.0, Culture=neutral,
PublicKeyToken=969db8053d3322ac' in project 'HopeStudy' cannot be copied to
the run directory because it would conflict with dependency 'mscorlib,
Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'.

How can I do next?

Thank you so much
 
A

Alex Feinman [MVP]

Did you accidentally add a reference to the desktop version of mscorlib?
 
D

Dick Grier

Hi,

This message indicates that you are trying to use a non-Compact Framework
dll (or reference) in your project. Look through your project references to
make sure that some Desktop dll is not included.

Dick

--
Richard Grier (Microsoft Visual Basic MVP)

See www.hardandsoftware.net for contact information.

Author of Visual Basic Programmer's Guide to Serial Communications, 3rd
Edition ISBN 1-890422-27-4 (391 pages) published February 2002.
 
A

Art

In my project, I references only...
OpenNETCF.Windows.Forms
System
System.Data
System.Data.Common
System.Data.SqlServerCe
System.Drawing
System.Windows.Forms
System.Xml

When run, itl has the problem :
Error: The dependency 'mscorlib, Version=1.0.5000.0, Culture=neutral,
PublicKeyToken=969db8053d3322ac' in project 'HopeStudy' cannot be copied to
the run directory because it would conflict with dependency 'mscorlib,
Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'.

I think it may conflict with mscorlib.dll
When I "Add References...", it shows mscorlib.dll too (but not in my
project)
mscorlib.dll comes with CF SDK.
How can I remove it, or solve this problem?

Thank you so much
 
C

Chris Tacke, eMVP

You have the desktop mscorlib referenced. Remove it and add the CF version
and it should work fine.

-Chris
 
A

Art

After I uninstall the .Net Framework, I can not open my project.
How can I do?

Thank you so much
 
C

Chris Tacke, eMVP

Why did you uninstall the framework? In you project you simply remove the
reference to mscorelib. You need the .NET Framework.
 

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

Similar Threads


Top