Problem referencing class libraries compiled with .NET 1.1

G

Gabo

Hi, I'm new to the PocketPC development arena and I'm trying to write a
WinForms app shell for PocketPC that references a dll that was compiled
using a standard Class Library project.


I created a PocketPC Windows Forms project, added a reference to my assembly
and whenever I try to compile I get:

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

Is this just a problem with my environment or referencing .NET 1.1
assemblies is not supported by the compact framework?



Thanks



PS I noticed that the references to System in the PoketPC project point to
C:\Program Files\Microsoft Visual Studio .NET
2003\CompactFrameworkSDK\v1.0.5000\Windows CE\System.dll instead of the
standard C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\System.dll
 
P

Peter Foot [MVP]

You cannot use assemblies compiled against the desktop .NET framework in a
device project. In general you can use a .NETCF assembly on the desktop as
long as it doesn't make use of device specific functionality e.g.
Microsoft.WindowsCE.Forms or SqlCE. You will also need to be aware that
P/Invoke declarations will be different and the file paths used with CE are
different from desktop Windows.

Peter

--
Peter Foot
Windows Embedded MVP
www.inthehand.com | www.opennetcf.org

Do have an opinion on the effectiveness of Microsoft Windows Mobile and
Embedded newsgroups? Let us know!
https://www.windowsembeddedeval.com/community/newsgroups
 

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