protobuf-net 是否支持 Windows RT? [英] Does protobuf-net support Windows RT?
本文介绍了protobuf-net 是否支持 Windows RT?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
是否可以在面向目标的应用程序中使用 protobuf-net 库视窗RT?我尝试通过 NuGet 将其添加到我的项目中,但收到此错误:
Is it possible to use the protobuf-net library in an application that targets Windows RT? I tried adding it via NuGet to my project but I receive this error:
Successfully installed 'protobuf-net 2.0.0.480'.
Successfully uninstalled 'protobuf-net 2.0.0.480'.
Install failed. Rolling back...
Could not install package 'protobuf-net 2.0.0.480'. You are trying to install this package into a project that targets '.NETCore,Version=v4.5', but the package does not contain any assembly references that are compatible with that framework. For more information, contact the package author.
推荐答案
您需要更新的版本.594 版支持 4.5.在包管理器控制台(工具->库包管理器->包管理器控制台)中运行:
You need a newer version. Version 594 has support for 4.5. In the package manager console (Tools->Library Package Manager->Package Manager Console) run:
PM> 安装包 protobuf-net -Version 2.0.0.594
PM> Install-Package protobuf-net -Version 2.0.0.594
或从项目网站下载.
这篇关于protobuf-net 是否支持 Windows RT?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文