protobuf-csharp-port
protobuf-csharp-port copied to clipboard
Automatically exported from code.google.com/p/protobuf-csharp-port
``` I am a class library developper and recently I just want to wrap the google.protocolbuffers and publish a class library to users. But I encounter some problems: I have...
``` What steps will reproduce the problem? 1. ~/BuildSrc/protobuf-csharp-port-2.4.1.521/mono$ ./buildall.sh Building main library ../src/ProtocolBuffers/GeneratedMessage.cs(55,26): error CS0314: The type `TBuilder' cannot be used as type parameter `TBuilder' in the generic type...
``` To iterate over items of a repeated extensions, one needs to do: for (int i = 0; i < msg.GetExtensionCount(ExtId); i++) { var ext = msg.GetExtension(ExtId, i); // use...
``` It would be nice if VS could generate csharp code from proto files automatically. A Custom Tool is the right tool for the job. protobuf-net has a Custom Tool:...
``` Please provide any additional information below. Consider the following .proto file: message OutterMsg { message InnerMsg {} optional InnerMsg inner_msg = 1; } Currently, produced code looks like this:...
``` We're now supporting a pretty archaic set of platforms - in particular, I don't know how to build a Compact Framework 2.0 solution in any Visual Studio release later...
``` What steps will reproduce the problem? 1. Generate the DescriptorProtoFile.cs , CSharpOptions.cs and Protocal.cs I used mono ProtoGen.exe -line_break=Unix -output_directory=../PDServer/PDServer/protocal --proto_path=./proto --include_imports ./proto/myproto.proto 2. Add all three files (DescriptorProtoFile.cs...
``` What steps will reproduce the problem? 1. From the shell run `mono ../cs/Packages/Google.ProtocolBuffers/tools/ProtoGen.exe --protoc_dir=/usr/local/bin/ ./subdir/simple_types.proto` What is the expected output? What do you see instead? Current output is nothing,...
``` The naming guidelines for Google Protobuf enums is to use the C++/Java standard of all capitals: enum MyEnum { OPTION_ONE =1; OPTION_TWO =2; } In .NET the naming standards...
``` I have a custom DateTimeProto and GuidProto classes that are binary structures which is great for talking to an embedded device running protocol buffers in C++. On the C#...