1

I could not update the WindowsAzure.Storage NuGet Package. It seems other package that probably depends on it, each time I update that package, I got the same error:

Install failed. Rolling back... Updating 'Microsoft.Data.OData 5.6.2' to 'Microsoft.Data.OData 5.6.4' failed. Unable to find versions of 'WindowsAzure.MobileServices.Backend.Tables, WindowsAzure.MobileServices.Backend.Entity' that are compatible with 'Microsoft.Data.OData 5.6.4'.

Why do I get this and how can I resolve this issue?

1 Answers1

1

Why do I get this and how can I resolve this issue?

According to the nuget package of WindowsAzure.Storage, you will find this package have a dependencies is Microsoft.Data.OData (>= 5.6.2):

enter image description here

when you update the package WindowsAzure.Storage, the dependency package Microsoft.Data.OData (>= 5.6.2) also need to upgrade to 5.6.4.

However, the nuget packages WindowsAzure.MobileServices.Backend.Tables and WindowsAzure.MobileServices.Backend.Entity' are dependent on Microsoft.Data.OData (>= 5.6.2):

enter image description here

In this case, NuGet could not update the nuget package WindowsAzure.Storage.

To resolve this issue, you can use the option IgnoreDependencies when you update that package:

update-package WindowsAzure.Storage -IgnoreDependencies
Leo Liu
  • 71,098
  • 10
  • 114
  • 135
  • But When I use that command I got following error:NuGetCmdletUnhandledException,NuGet.PackageManagement.PowerShellCmdlets.UpdatePackageCommand –  Jan 21 '18 at 13:26
  • How about uninstall that package, then reinstall that package with option -IgnoreDependencies? – Leo Liu Jan 22 '18 at 01:33
  • Yes, reinstall that package with option -IgnoreDependencies works fine, but why update with that option not work? –  Jan 22 '18 at 11:30