所以我试图将 RavenDB.Client 安装到一个新的 Asp.Net Mvc 4.0 项目中,并收到以下错误。
PM> Install-Package RavenDB.Client -Version 1.0.980
Attempting to resolve dependency 'Newtonsoft.Json (= 4.0.8)'.
Attempting to resolve dependency 'NLog (= 2.0.0.2000)'.
Successfully installed 'Newtonsoft.Json 4.0.8'.
Successfully installed 'NLog 2.0.0.2000'.
You are downloading RavenDB.Client from Hibernating Rhinos, the license agreement to which is available at http://www.ravendb.net/licensing. Check the package for additional dependencies, which may come with their own license agreement(s). Your use of the package and dependencies constitutes your acceptance of their license agreements. If you do not accept the license agreement(s), then delete the relevant components from your device.
Successfully installed 'RavenDB.Client 1.0.980'.
Install failed. Rolling back...
Install-Package : Updating 'Newtonsoft.Json 4.5.6' to 'Newtonsoft.Json 4.0.8' failed. Unable to find a version of 'Microsoft.AspNet.WebApi.Client' that is compatible with 'Newtonsoft.Json 4.0.8'.
At line:1 char:1
+ Install-Package RavenDB.Client -Version 1.0.980
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (:) [Install-Package], InvalidOperationException
+ FullyQualifiedErrorId : NuGetCmdletUnhandledException,NuGet.PowerShell.Commands.InstallPackageCommand
不幸的是,Microsoft.AspNet.WebApi.Client 是我实际需要使用的默认安装的一长串东西之一。我在这里有哪些选择?
最佳答案
这已被问到 many times before 。
目前最好的建议是使用 RavenDB 的预发布“不稳定”版本。 2.0 版本接近 RTM,并且不稳定的构建非常好。
关于dependencies - 安装 RavenDb 客户端的 Nuget 依赖错误,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/13535387/