Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / .NET Framework / Compact Framework / May 2004

Tip: Looking for answers? Try searching our database.

What does this build error mean?

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Tommy Malone - 10 May 2004 15:27 GMT
Error: The dependency 'mscorlib, Version=1.0.5000.0, Culture=neutral,
PublicKeyToken=969db8053d3322ac' in project 'MohawkProfit' cannot be copied
to the run directory because it would conflict with dependency 'mscorlib,
Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'.

And how can I fix it?
Floyd Burger - 10 May 2004 15:34 GMT
Check the project's mscorlib reference properties.  I'd bet that you have
that set to copy local.  Change the CopyLocal property to false and it
should fix it.

Signature

Floyd Burger

> Error: The dependency 'mscorlib, Version=1.0.5000.0, Culture=neutral,
> PublicKeyToken=969db8053d3322ac' in project 'MohawkProfit' cannot be copied
> to the run directory because it would conflict with dependency 'mscorlib,
> Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'.
>
> And how can I fix it?
Tommy Malone - 10 May 2004 17:29 GMT
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.

> Check the project's mscorlib reference properties.  I'd bet that you have
> that set to copy local.  Change the CopyLocal property to false and it
[quoted text clipped - 7 lines]
> >
> > And how can I fix it?
Pete Vickers [eMVP] - 10 May 2004 22:42 GMT
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

Signature

Pete Vickers
Microsoft Windows Embedded MVP
HP Business Partner
http://www.gui-innovations.com

> 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
[quoted text clipped - 17 lines]
> > >
> > > And how can I fix it?
Andrew Leeder - 11 May 2004 21:11 GMT
I just picked up exactly the same error having included OpenNETCF in a
project to access the Registry functions.

Adding a reference to mscorlib and then manually editing the .vbdproj file
as suggested to make mscorlib the first entry seems to have fixed the
problem.

But why should adding a reference to the OpenNETCF (for OpenNETCF.Win32
Registry functions) which I obtained by installing the
"smartDeviceFramework" on top of several of the earlier OpenNETCF libraries
(projects using these still compile without error) cause so much problem.

> Hi,
> try this as suggested by Neil Cowburn...
[quoted text clipped - 31 lines]
> > > >
> > > > And how can I fix it?
Chris Tacke, eMVP - 11 May 2004 21:15 GMT
The VB project build process doesn't allow us to explicitly place the
reference properly.  It works fine under C#, which is what was tested more
heavily.  We're investigating how to fix this with the 1.1 deployment.

Signature

Chris Tacke, eMVP
Co-Founder and Advisory Board Member
www.OpenNETCF.org
---
Windows CE Product Manager
Applied Data Systems
www.applieddata.net

> I just picked up exactly the same error having included OpenNETCF in a
> project to access the Registry functions.
[quoted text clipped - 48 lines]
> > > > >
> > > > > And how can I fix it?
Andrew Leeder - 11 May 2004 21:13 GMT
I just picked up exactly the same error having included OpenNETCF in a
project to access the Registry functions.

Adding a reference to mscorlib and then manually editing the .vbdproj file
as suggested to make mscorlib the first entry seems to have fixed the
problem.

But why should adding a reference to the OpenNETCF (for OpenNETCF.Win32
Registry functions) which I obtained by installing the
"smartDeviceFramework" on top of several of the earlier OpenNETCF libraries
(projects using these still compile without error) cause so much problem.

~A

> Hi,
> try this as suggested by Neil Cowburn...
[quoted text clipped - 31 lines]
> > > >
> > > > And how can I fix it?
Alex Feinman [MVP] - 10 May 2004 18:59 GMT
It looks like you have referenced something that is built for the desktop -
the conflicting mscorlib is the one from the full framework

Signature

Alex Feinman
---
Visit http://www.opennetcf.org

> Error: The dependency 'mscorlib, Version=1.0.5000.0, Culture=neutral,
> PublicKeyToken=969db8053d3322ac' in project 'MohawkProfit' cannot be copied
> to the run directory because it would conflict with dependency 'mscorlib,
> Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'.
>
> And how can I fix it?

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2010 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.