ServiceStack BSD版本3.9.71和protobuf-net版本 [英] ServiceStack BSD version 3.9.71 and protobuf-net version
问题描述
我从Nuget下载了ServiceStack BSD版本3.9.71
I downloaded the ServiceStack BSD version 3.9.71 from Nuget
使用命令
安装包ServiceStack-版本3.9.71
Install-Package ServiceStack -Version 3.9.71
和Install-Package ServiceStack.Plugins.ProtoBuf-版本3.9.71
and Install-Package ServiceStack.Plugins.ProtoBuf -Version 3.9.71
我还安装了protobuf-net
I installed also the protobuf-net
安装包protobuf-net
Install-Package protobuf-net
但是我有问题,因为ServiceStack 3.9.71试图找到protobuf-net ver.2.0.0.640,
but I have problem because the ServiceStack 3.9.71 try to find the protobuf-net ver.2.0.0.640,
当来自Nuget的protobuf的最新版本是2.0.0.668
when the last version of protobuf from Nuget is 2.0.0.668
推荐答案
NuGet软件包未在其上指定版本约束,因此它们获得了最新的依赖关系,在这种情况下为 v2.0.0.668 >.您可以卸载当前版本的protobuf-net并仅安装所需的版本,例如:
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
否则,另一个选择是添加绑定重定向在您的web.config中.
Otherwise another option is to add Binding Redirects in your web.config.
以后,我将为外部NuGet依赖项指定显式版本.
I'll look at specifying explicit versions for external NuGet dependencies in future.
这篇关于ServiceStack BSD版本3.9.71和protobuf-net版本的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!