Install-Package Cobalt.Infrastructure.HttpClient Unable to resolve dependency 'Coherence (? 16.5.9)'

I am using the NuGet package source
http://cobaltnuget.int.thomsonreuters.com:85/api/v2/ and trying to install Cobalt.Infrastructure.HttpClient and keep getting **Unable to resolve dependency 'Coherence (? 16.5.9)'.** Is there another package source I also need to include? PM> Install-Package Cobalt.Infrastructure.HttpClient -Version 23.1.1.0 Attempting to resolve dependency 'Newtonsoft.Json (? 4.5.0)'. Attempting to resolve dependency 'log4net (? 1.2.10.0)'. Attempting to resolve dependency 'Cobalt.Infrastructure.Logging (? 16.4.1.0)'. Attempting to resolve dependency 'IBM.XMS (? 1.1.2.0)'. Attempting to resolve dependency 'Cobalt.Infrastructure.CoherenceNet (? 16.5.18.0)'. Attempting to resolve dependency 'Cobalt.Infrastructure.LocalCache (? 16.5.5.0)'. Attempting to resolve dependency 'Coherence (? 16.5.9)'. install-package : Unable to resolve dependency 'Coherence (? 16.5.9)'.

Best Answer

  • Ron Burke
    Answer ✓
    Most of the Infrastructure dlls that have a dependency on log4net updated the log4net version that is being used from 1.2.10 to 1.2.13. However, the
    coherence.net dll has not updated its dependency yet, this should be fixed this week. You will need to get the httpclient and
    coherence.net dlls once they have been updated. You will also want to make sure you update any dependencies your projects have on log4net to use 1.2.13. Normally you would be able to just use the later version in your project and use a binding redirect, however log4net is using a new public key for 1.2.13.

Answers

  • Thank you. I will wait to accept this until it works. My confusion is that it is looking for a package named Coherence. If it was looking for a package that is listed as a dependency of any of these packages then it would make more sense to me.
  • You can see more information about this package at
    http://cobaltnuget.int.thomsonreuters.com:85/packages/Cobalt.Infrastructure.HttpClient
  • There must be something wrong with the NuGet package for Cobalt.Infrastructure.HttpClient or one of its dependencies. I can successfully install the package *if* I first Install-Package Cobalt.Infrastructure.LocalCache
  • The dependencies for HttpClient are actually being managed manually and not through NuGet. So yes what you did might resolve your problem. However if you are using CoherenceNet.dll you will run into an issue with the log4net dll because of what I cited in my original answer. If you do use coherencenet then pick up version 23.2.1 from the cobalt gallery (
    http://cobaltnuget.int.thomsonreuters.com:85/packages/Cobalt.Infrastructure.CoherenceNet/23.2.1.0-build)
  • Updating all the packages to latest versions got rid of dependencies on the old log4net.