简体   繁体   中英

How to process a .proto file using protobuf-net

I have started using the protobuf-net lib to communication between some of the programs I'm maintaining. I have also been able to decode messages from C# to Ruby. My ruby ProtoBuf lib is using a .proto file to generate the ruby code. In the interest of having to make changes in as few places as possible I would like to have protobuf-net use the same .proto file. Looking though the protobuf-net folders there is a Dll named ProtoBufGenerator and the protobuf exe but I cant find any instructions on if I can make protobuf-net work this way.

Is this possible?

Check out Marc Gravell's blog, this post specifically. You basically set it as a custom build tool for the file in Visual Studio.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM