首页 文章

使用NewtonJson.NET版本4.0.8.0的RavenDb客户端问题

提问于
浏览
2

我在集成测试项目中遇到了RavenDb客户端和NewtonJson.NET的问题 . 我收到以下异常:

程序集'System.Net.Http.Formatting,Version = 4.0.0.0,Culture = neutral,PublicKeyToken = 31bf3856ad364e35'使用'Newtonsoft.Json,Version = 4.5.0.0,Culture = neutral,PublicKeyToken = 30ad4fe6b2a6aeed',其版本较高比引用的程序集'Newtonsoft.Json,Version = 4.0.8.0,Culture = neutral,PublicKeyToken = 30ad4fe6b2a6aeed'... \ packages \ Microsoft.AspNet.WebApi.Client.4.0.20710.0 \ lib \ net40 \ System.Net.Http . Formatting.dll

我需要使用System.Net.Http.Formatting,它使用NewtonSoft.Json 4.5.0.0和使用4.0.8.0的RavenDb客户端 . I do not want to use unstable builds of RavenDb 因为这段代码需要快速投入 生产环境 . 你有解决方案吗?

1 回答

相关问题