Does protobuf-csharp-port support Windows RT?

送分小仙女□ 提交于 2019-12-24 12:34:02

问题


protobuf-csharp-port homepage(with sourcecode)

In my previous windows phone silverlight 8.0 project
I used protobuf-csharp-port to implement the 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:

sounds like the Serializable Attribute is not useful any more
So question is:

  1. Why the red font?Does protobuf-csharp-port support Windows RT?
  2. If not,How can I use the google protocol buffer on WinRT?

Any Advice would be great,Thanks a lot!!!


Question Update at 2014/07/11
First,thanks for the Nuget Tip,helps me a lot
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
So,target win8.1.I choose winrt component at first
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

So,Does protobuf-csharp-port support Windows RT?


回答1:


Does protobuf-csharp-port support Windows RT?

Yes, protocol buffers are supported on Windows Store Apps.

How can I use the google protocol buffer on WinRT?

The simplest way is to install the Protocol Buffers NuGet package by Jon Skeet for the relevant projects in your solution:

This way, all the required references will be properly set up for you, and you can start using it right away.



来源:https://stackoverflow.com/questions/24670524/does-protobuf-csharp-port-support-windows-rt

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