Build Errors on MSCorlib.

G

garfitz

Hi there,

I'm trying to utilise the OpenNetCF classes but get an error when I
add the .dll as s reference to my project.

The error is;

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

I have upgraded to NETCFSP2 on VS2003...

Where is the discrepancy occurring ??
 
S

Stan Adermann [Msft]

Garrett,

The 2nd mscorlib with PublicKeyToken=b77a5c561934e089 is a reference to the
desktop mscorlib rather than the CF one. This means that either your
project or OpenNetCF is incorrectly linked against the desktop.

Make sure that when you create your CF project you select 'Smart Device
Application', even for a .dll.

Stan Adermann
Developer
Microsoft .NET Compact Framework

This posting is provided "AS IS" with no warranties, and confers no rights.

--------------------
| From: (e-mail address removed) (garfitz)
| Subject: Build Errors on MSCorlib.
|
| Hi there,
|
| I'm trying to utilise the OpenNetCF classes but get an error when I
| add the .dll as s reference to my project.
|
| The error is;
|
| Error: The dependency 'mscorlib, Version=1.0.5000.0, Culture=neutral,
| PublicKeyToken=969db8053d3322ac' in project 'myProject' cannot be
| copied to the run directory because it would conflict with dependency
| 'mscorlib, Version=1.0.5000.0, Culture=neutral,
| PublicKeyToken=b77a5c561934e089'.
|
| I have upgraded to NETCFSP2 on VS2003...
|
| Where is the discrepancy occurring ??
|
 

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