nuget错误在便携式库上安装protobuf-net

Kei*_*ith 5 protobuf-net nuget portable-class-library

我正在尝试在便携式类库中安装protobuf-net(2.0.0.602),我似乎无法让它工作.我收到此错误:

PM> install-package protobuf-net
'protobuf-net 2.0.0.602' already installed.
install-package : Could not install package 'protobuf-net 2.0.0.602'. You are trying to install this package into a project that targets '.NETPortable,Version=v4.0,Profile=Profile4', but 
the package does not contain any assembly references or content files that are compatible with that framework. For more information, contact the package author.
Run Code Online (Sandbox Code Playgroud)

检查包看起来似乎是针对portable-sl4 + wp71 + windows8,但是当我创建一个针对这些框架的vinalla项目时,我无法让它工作(profile4在上面列出,但我尝试了几个不同的看到什么坚持).我刚刚在工作室更新了nuget.从包管理器控制台运行'nuget'会将nuget版本显示为2.1.31022.9038.

如果我浏览到包中的protobuf-net.dll(在lib\_便携式-sl4 + wp71 + windows8下),它将允许我引用它,一切都很好.

我可以手动添加它,但我错过了一些明显的东西.

任何帮助赞赏.

Mar*_*ell 4

这似乎只是 nuget 配置所需的轻微调整;portable-sl4+wp71+windows8当我实际上需要指定时,我已经指定portable-sl4+net4+wp7+windows8了包含常规 .NET。

此问题已在 2.0.0.611 中修复,并已推送到 NuGet。