RavenDb 最新版本安装为 nuget 包。它引用了 Newtonsoft.Json 4.0.2。我正在尝试安装 TweetSharp。我得到这个日志:
M> Install-Package TweetSharp
Attempting to resolve dependency 'Hammock (≥ 1.2.3)'.
Attempting to resolve dependency 'Newtonsoft.Json (≥ 4.0.1)'.
Successfully installed 'Hammock 1.2.6'.
Successfully installed 'Newtonsoft.Json 4.0.3'.
Successfully installed 'TweetSharp 2.0.8'.
Install failed. Rolling back...
Install-Package : Updating 'Newtonsoft.Json 4.0.2' to 'Newtonsoft.Json 4.0.3'
failed. Unable to find a version of 'RavenDB-Embedded' that is compatible with
'Newtonsoft.Json 4.0.3'.
如您所见,即使 TweetSharp 只需要“Newtonsoft.Json (≥ 4.0.1)”,nuget 也希望安装无法与 RavenDb 一起使用的 4.0.3 版本。
我尝试安装以前版本的 TweetSharp,但它并没有改变任何东西。
有什么办法可以规避这个?