简体   繁体   English

protobuf-csharp-port是否支持Windows RT?

[英]Does protobuf-csharp-port support Windows RT?

protobuf-csharp-port homepage(with sourcecode) protobuf-csharp-port主页(含源代码)

In my previous windows phone silverlight 8.0 project 在我以前的Windows Phone Silverlight 8.0项目中
I used protobuf-csharp-port to implement the GPB, 我使用protobuf-csharp-port来实现GPB,
but now I want to port the project to windows 8.1 and then universal ,so I copy the source code to create a windows runtime component(I am a library developper),but encounter some problems: 但是现在我想将项目移植到Windows 8.1 ,然后 通用 ,所以我复制源代码以创建Windows运行时组件(我是一个库开发人员),但是遇到一些问题: 在此处输入图片说明

sounds like the Serializable Attribute is not useful any more 听起来像Serializable属性不再有用
So question is: 所以问题是:

  1. Why the red font?Does protobuf-csharp-port support Windows RT? 为什么是红色字体protobuf-csharp-port是否支持Windows RT?
  2. If not,How can I use the google protocol buffer on WinRT? 如果没有,如何在WinRT上使用Google协议缓冲区?

Any Advice would be great,Thanks a lot!!! 任何建议都会很棒,非常感谢!!!


Question Update at 2014/07/11 2014年7月11日问题更新
First,thanks for the Nuget Tip ,helps me a lot 首先,感谢Nuget技巧 ,对我有很大帮助
But some questions still exist 但是仍然存在一些问题
I am a class library developper ,my goal now is to develop a portable way for win and wp developpers 我是一名班级图书馆开发人员 ,我的目标是为win和wp开发人员开发一种便携式方法
So,target win8.1.I choose winrt component at first 因此,目标是win8.1。我首先选择winrt组件
after adding reference, 添加参考后, 温特成分问题
so I decide to change,choose class library ,I develop my own class library which is referencing "Protocol.Buffers" and add the class library I developped to my demo app,and run the demo app 因此,我决定进行更改,选择类库 ,开发自己的类库,该类库引用“ Protocol.Buffers”,并将开发的类库添加到演示应用程序中,然后运行演示应用程序 类库问题

So,Does protobuf-csharp-port support Windows RT? 那么,protobuf-csharp-port是否支持Windows RT?

Does protobuf-csharp-port support Windows RT? protobuf-csharp-port是否支持Windows RT?

Yes, protocol buffers are supported on Windows Store Apps. 是的,Windows Store Apps支持协议缓冲区。

How can I use the google protocol buffer on WinRT? 如何在WinRT上使用Google协议缓冲区?

The simplest way is to install the Protocol Buffers NuGet package by Jon Skeet for the relevant projects in your solution: 最简单的方法是为解决方案中的相关项目安装Jon Skeet的Protocol Buffers NuGet程序包:

协议缓冲区NuGet

This way, all the required references will be properly set up for you, and you can start using it right away. 这样,所有必需的参考都将为您正确设置,您可以立即开始使用它。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 protobuf的-CSHARP端口 - protobuf-csharp-port 如何在 Windows 下在 Mono 上构建 protobuf-csharp-port - How to build protobuf-csharp-port on Mono under Windows protobuf-csharp-port 和 protobuf-net 如何选择 - How to choose between protobuf-csharp-port and protobuf-net 协议缓冲区-protobuf-csharp-port:是否存在等效的JAVA API调用CodedInputStream.getBytesUntilLimit()? - Protocol Buffers - protobuf-csharp-port : Does the equivalent of JAVA API call CodedInputStream.getBytesUntilLimit() exist? 是否可以在protobuf-csharp-port中检测消息类型? - Is it possible to detect message type in protobuf-csharp-port? 使用带有protobuf-csharp-port的文件记录和重播人类可读的protobuf消息 - Record and replay human-readable protobuf messages using a file with protobuf-csharp-port 有没有办法将protobuf-csharp-port生成的类与servicestack.ormlite一起使用? - Is there way to use protobuf-csharp-port generated classes with servicestack.ormlite? protobuf-csharp-port这些工具最适合今天使用什么版本? - protobuf-csharp-port what version(s) of these tools are best to use today? protobuf-csharp-port-来自文件的流记录有点像LINQ-to-XML中的轴函数 - protobuf-csharp-port - streaming records from a file a bit like an axis function in LINQ-to-XML protobuf-net是否支持ArraySegment(还?) - Does protobuf-net support ArraySegment (yet?)
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM