Frage

I'm attempting to install the Service Stack Azure Cache provider but I receive a NuGet error as follows.

  PM> Install-Package ServiceStack.Caching.Azure
  Attempting to resolve dependency 'ServiceStack.Common (≥ 4.0.12)'.
  Attempting to resolve dependency 'ServiceStack.Interfaces (≥ 4.0.12)'.
  Attempting to resolve dependency 'ServiceStack.Text (≥ 4.0.12)'.
  Attempting to resolve dependency 'WindowsAzure.Caching (≥ 2.2.0.0)'.
  Install-Package : Unable to resolve dependency 'WindowsAzure.Caching (≥ 2.2.0.0)'.
  At line:1 char:16
  + Install-Package <<<<  ServiceStack.Caching.Azure
      + CategoryInfo          : NotSpecified: (:) [Install-Package], InvalidOperationException
      + FullyQualifiedErrorId : NuGetCmdletUnhandledException,NuGet.PowerShell.Commands.InstallPackageCommand

I've tried manually installing the WindowsAzure.Caching library before installing the Service Stack package but the problems remains.

I've also tried removing everything from the packages folder and using NuGet to restore packages but no joy.

All ideas welcome, thanks.

War es hilfreich?

Lösung

I was able to reproduce your issue on a blank project.

Looking at the current version of ServiceStack.Caching.Azure (at the time of this writing) there is a dependency WindowsAzure.Caching (≥ 2.2.0.0). WindowsAzure.Caching only has 1.7.0 but there is a Microsoft.WindowsAzure.Caching 2.2.0 which could be what the author of the NuGet-package meant (or there is a private feed containing WindowsAzure.Caching 2.2.0).

You will probably want to get in touch with servicestack as this commit seems to have broken the package dependency by adding the version without switching to the new package name. I have created a pull request for them that should fix the issue.

Lizenziert unter: CC-BY-SA mit Zuschreibung
Nicht verbunden mit StackOverflow
scroll top