谷歌驱动器SDK System.Net.Http.Primitives版本1.5.0.0,而不是2.1.10.0 [英] Google Drive SDK System.Net.Http.Primitives Version 1.5.0.0 instead of 2.1.10.0
问题描述
刚刚下载google-drive-v2-rev82-csharp-1.4.0-beta.zip的全新副本,并在我的VS 2012的C#项目添加到Google.Apis.Drive.v2.dll的参考。我还添加了zip文件的lib文件夹的所有dll的引用。当我运行该项目就抱怨说,System.Net.Http.Primitives的2.1.10.0版本被发现时,它预期的版本1.5.0.0。我尝试添加以下内容的App.config,但它仍然崩溃的时候跑了:
Just downloaded a fresh copy of google-drive-v2-rev82-csharp-1.4.0-beta.zip and added a reference to Google.Apis.Drive.v2.dll in my VS 2012 C# project. I also added references to all the dll's in the Lib folder of the zip file. When I run the project it complains that version 2.1.10.0 of System.Net.Http.Primitives was found when it expected version 1.5.0.0. I tried adding the following to App.config but it still crashes when ran:
<runtime>
<assemblybinding xmlns="urn:schemas-microsoft-com:asm.v1">
<dependentassembly>
<assemblyidentity name="System.Net.Http.Primitives"
culture="neutral"
publickeytoken="b03f5f7f11d50a3a"/>
<bindingredirect newVersion="2.1.10.0" oldVersion="1.5.0.0"/>
</dependentassembly>
</assemblybinding>
</runtime>
我只是缺少一些概念还是有不同的文件我需要下载或什么?
Am I just missing some concept or is there a different file I need to be downloading or what?
推荐答案
请跟随我们的指示中的生成wiki页面。我建议你使用的NuGet来获取第三方软件包(包括Microsoft.Net.Http包)
Please follow our instructions in the Build wiki page. I recommend you to use NuGet to get the 3rd party packages (including Microsoft.Net.Http package)
这篇关于谷歌驱动器SDK System.Net.Http.Primitives版本1.5.0.0,而不是2.1.10.0的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!