gpt4 book ai didi

dependencies - 安装 RavenDb Embedded 时出现 Nuget 依赖错误

转载 作者:行者123 更新时间:2023-12-03 01:31:24 26 4
gpt4 key购买 nike

我正在尝试在 ASP.NET MVC 5 应用程序中安装 RavenDB.Embedded,但出现以下依赖项错误:

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

关于dependencies - 安装 RavenDb Embedded 时出现 Nuget 依赖错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/21515178/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com