Re: dll version conflict

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance




"Peter Kirk" <pk@xxxxxxxxxxxxxxxxxx> skrev i en meddelelse
news:OJqT35XcFHA.132@xxxxxxxxxxxxxxxxxxxxxxx
> Error: The dependency 'Alpha.Portal.Logging, Version=1.0.1944.20770,
> Culture=neutral' in project 'Alpha.Documents.Verification.WindowsService'
> cannot be copied to the run directory because it would conflict with
> dependency 'Alpha.Portal.Logging, Version=1.0.1747.23851,
> Culture=neutral'.
>
> Error: The dependency 'Alpha.Portal.Logging, Version=1.0.1747.23851,
> Culture=neutral' in project Alpha.Documents.Verification.WindowsService'
> cannot be copied to the run directory because it would conflict with
> dependency 'Alpha.Portal.Logging, Version=1.0.1944.20770,
> Culture=neutral'.
>
> Can someone explain what it means, and how I avoid it? Obviously there is
> some sort of conflict in versions of 'Alpha.Portal.Logging'. And I have
> just replaced the 'Alpha.Portal.Logging' dll with an updated version - but
> why does Visual Studio not just use the new version, and claim there is a
> conflict with the old version?

Well I found a couple of ways to "fix" the problem:

(1) go through all the references and change "copy local" to false. This is
tedious, and then seems to require that after a compilation I have to
manually copy all the necessary dlls to the run directory.

(2) go through all the references, remove them, and add them again. This is
also tedious, but at least I can compile again and don't need to manually
copy things when I want to run my app.

Anyone have some better solutions?
Peter


.



Relevant Pages

  • GFS-kernel cman-kernel dlm-kernel and gnbd-kernel FC4 x86_64 update
    ... I wnet in a little hell for dependency resolution: ... resulting in the well know conflict. ... with the ecxeption of some RPM ... older kernel; ...
    (Fedora)
  • OpenNETCF and ICSharpCode.SharpZipLib
    ... PublicKeyToken=b77a5c561934e089' in project 'OpenNETCFApplicationZip' cannot ... be copied to the run directory because it would conflict with dependency ... 'mscorlib, Version=1.0.5000.0, Culture=neutral, ...
    (microsoft.public.dotnet.framework.compactframework)
  • Re: dependency errors
    ... but the dependency checker brings it back in and then ... In article, John Coyne (eMVP) wrote: ... > Looks as though the conflict is between these two components... ...
    (microsoft.public.windowsxp.embedded)
  • Re: dependency conflict for latest YOU update (java-1_4_2)
    ... don't know why SuSE doesn't update the packages that depend on the java ... I have not found any updates that will solve the dependency ... Golden Consulting Services ...
    (alt.os.linux.suse)
  • Re: [GIT PATCHES] V4L/DVB fixes for 2.6.26
    ... (and add a dependency on S390 to the "Multimedia devices" menu). ... since Multimedia devices is already dependent on HAS_IOMEM. ... This breaks saa7134 compilation, if IR-I2C is not selected. ... twist to the kconfig stuff? ...
    (Linux-Kernel)