Getting ProtoGen with protobuf-net

前端 未结 1 1156
-上瘾入骨i
-上瘾入骨i 2021-01-21 06:31

I\'m trying to serialize some classes with protobufs. I installed protobuf-net using NuGet, properly decorated my code with the attributes, and everything is running great.

相关标签:
1条回答
  • 2021-01-21 07:21

    Protogen is included in the v1/280 build, or there is a separate VS tool available from the project site. There isn't a convenient way to include it in nuget in any sensible way (I checked with MS folks; twice).

    For both protogen and the VS addin, the functionality has not changed for v2, so the existing v1 binaries remain fine for use with v2.

    If the ProtoBufTool didn't work then... I don't know what is up with that; was there any error message / warning? The classic warning is about the input file's encoding ("protoc", google's tool, is very fussy about encoding).

    0 讨论(0)
提交回复
热议问题