我试图安装RavenDB.Embedded在ASP.NET MVC 5应用程序,但我有这个依赖性错误:
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
有我任何其他选择,而不是手动安装?
解决方法
这是由
NuGet 2.8’s new features引起的。这样做:
Install-Package RavenDB.Embedded -DependencyVersion Highest