You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
for example:
message SomethingList {
repeated Something something= 1;
}
protoc.exe generate class SomethingList will have property SomethingList, this cause VS compile error;
The .proto file is from old projects, iOS and other system need talk to, so change the message define maybe dangerous.I tried to find protoc.exe source code but failed, am i missed something? Is there other chance or advise, any suggestions are welcome.
The text was updated successfully, but these errors were encountered:
The change wouldn't be in protoc.exe, it would be in the generator code which is in this project - but please be aware that this codebase is no longer actively maintained - whereas the proto3 C# support is being actively maintained, at http://github.com/google/protobuf.
For the proto2 C# port, you'd need to either change the message (changing the name wouldn't change the wire format) or use an option to specify the property name explicitly.
for example:
message SomethingList {
repeated Something something= 1;
}
protoc.exe generate class SomethingList will have property SomethingList, this cause VS compile error;
The .proto file is from old projects, iOS and other system need talk to, so change the message define maybe dangerous.I tried to find protoc.exe source code but failed, am i missed something? Is there other chance or advise, any suggestions are welcome.
The text was updated successfully, but these errors were encountered: