AvocadoSoftware.com

Software For Hardcore Developers
Welcome to AvocadoSoftware.com Sign in | Join | Help
in Search

Derick Baileys old blog archives - go to derickbailey.com for new contents

VB.NET 2003 / Pocket PC: The dependency 'mscorlib...' in project cannot be copied to the run directory ...

I'm building a samll Pocket PC application using a Smart Device project in VB.NET 2003, and this morning I start running into this error message:

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

After a little Googling around, I ran into This Post over at .NET Monster, which described the situation and solution, perfectly. Here's the rundown:

 

Re: What does this build error mean?

10 May 2004 16:29 

Tommy Malone 

Before this error, mscorlib was not listed in the references section. I have
added it and ensured that the "Copy Local" property is set to false. The
errors referenced below have disappeared from the Task List, however, now
when I build I get the "Build Errors" dialog but with no errors in the Task
List to resolve. The is frustrating because I don't know what has changed
since today and last Friday to suddenly cause these errors.

I'd appreciate any assistance in resolving this.

Re: What does this build error mean? 10 May 2004 21:42 
Pete Vickers [eMVP] 
Hi,
try this as suggested by Neil Cowburn...
"The problem lies with the reference order within the .vbdproj file. Open
the .vbdproj file in Notepad, scroll down the the References and manually
move the mscorlib reference so that it is position ABOVE any OpenNETCF
references. Save the project file and open in VS .NET. It will build fine. "

HTH

Pete

Now, to my knowledge, I'm not using any OpenNetCF references (not even sure what this is, entirely), but apparently the same principal applies to MSCorlib and other references. I used Notepad to open up my .vbproj file, and moved the references around so that MSCorlib was the first reference in the list. After reloading the project in VS.NET, it compiles just fine.

 

Published Friday, January 14, 2005 9:30 AM by dredge
Filed Under: ,
New Comments to this post are disabled

This Blog

Post Calendar

<January 2005>
SuMoTuWeThFrSa
2627282930311
2345678
9101112131415
16171819202122
23242526272829
303112345

Advertisement

News

this is my old blog archives - go to http://derickbailey.com for updates

Syndication

Advertisement

Powered by Community Server, by Telligent Systems