Build Errors on MSCorlib.

  • Thread starter Thread starter garfitz
  • Start date Start date
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 ??
 
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 ??
|
 
Back
Top