Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Nuget dependency error installing RavenDb Embedded

I am trying to install RavenDB.Embedded in an ASP.NET MVC 5 application, but I have this dependency error:

PM> Install-Package RavenDB.Embedded Attempting to resolve dependency 'RavenDB.Database (= 2.5.2750)'. Attempting to resolve dependency 'System.Spatial (≥ 5.2)'. Attempting to resolve dependency 'WindowsAzure.Storage (≥ 2.0)'. Attempting to resolve dependency 'Microsoft.WindowsAzure.ConfigurationManager (≥ 1.7.0.0)'. Attempting to resolve dependency 'Microsoft.Data.OData (≥ 5.0.2)'. Attempting to resolve dependency 'Microsoft.Data.Edm (= 5.0.2)'. Attempting to resolve dependency 'System.Spatial (= 5.0.2)'. Install-Package : Updating 'System.Spatial 5.2.0' to 'System.Spatial 5.0.2' failed. Unable to find a version of 'RavenDB.Database' that is compatible with 'System.Spatial 5.0.2'. At line:1 char:1 + Install-Package RavenDB.Embedded + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~     + CategoryInfo          : NotSpecified: (:) [Install-Package], InvalidOperationException     + FullyQualifiedErrorId : NuGetCmdletUnhandledException,NuGet.PowerShell.Commands.InstallPackageCommand 

Have I any other options than to install it manually?

like image 827
Jérémie Bertrand Avatar asked Feb 02 '14 19:02

Jérémie Bertrand


1 Answers

This is caused by NuGet 2.8's new features. Do this instead:

Install-Package RavenDB.Embedded -DependencyVersion Highest 
like image 144
Matt Johnson-Pint Avatar answered Sep 18 '22 10:09

Matt Johnson-Pint