ServiceStack BSD version 3.9.71 and protobuf-net version

Deadly 提交于 2019-12-11 03:47:17

问题


I downloaded the ServiceStack BSD version 3.9.71 from Nuget

using the commmands

Install-Package ServiceStack -Version 3.9.71

and Install-Package ServiceStack.Plugins.ProtoBuf -Version 3.9.71

I installed also the protobuf-net

Install-Package protobuf-net

but I have problem because the ServiceStack 3.9.71 try to find the protobuf-net ver.2.0.0.640,

when the last version of protobuf from Nuget is 2.0.0.668


回答1:


The NuGet packages doesn't specify a version constraint on them so they get the latest dependency, in this case v2.0.0.668. You could uninstall the current version of protobuf-net and just install the one that's needed, e.g:

PM> Uninstall-Package protobuf-net -Force

PM> Install-Package protobuf-net -Version 2.0.0.640

Otherwise another option is to add Binding Redirects in your web.config.

I'll look at specifying explicit versions for external NuGet dependencies in future.



来源:https://stackoverflow.com/questions/20532618/servicestack-bsd-version-3-9-71-and-protobuf-net-version

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!