-
Notifications
You must be signed in to change notification settings - Fork 496
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Included protogen is unable to parse "oneof" #478
Comments
Nothing we can really do, |
Seems like "oneof" is not going to be implemented anytime soon. Are there any other options to generate the code from the ProtoBuffs? |
I believe
with just
then it should work, but you'd have to check in application code which of the fields is set. |
Another problem, seems to be also only present in a newer version of ProtoBuf (I'm still a novice on ProtoBuff and .NET in general, just tried to compile it for the TF2 Update, don't know what the allow_alias option actually does). |
support for |
Thanks! So how do we download/get/build the new protogen? Is there a convenient NuGet package? |
to pre-empt the next question ("how do I get standalone protogen?") (dammit, didn't quite type fast enough - you beat me!):
to pre-empt the question after that ("why isn't there a nuget package for just protogen?"): because nuget seems to have crappy options for this kind of tool; I'm harassing MS weekly on getting improved tools for build-time codegen. |
Not even |
honestly, I've never tried that; if that is an appropriate "fix" here, then I'm more than happy to take a look - especially if there are some reference docs somewhere |
The docs for that are here, but I'm not quite sure what to make of them this late at night. 😅 |
I'll take a look, thanks |
With an new build of protogen, the only way (it seems) to define a namespace is by using I might have to try option 2 above and build our own generator. |
there are some library-specific custom options for controlling that; but
I'm not *opposed* to re-adding the options that were there previously
…On 30 Oct 2017 8:10 a.m., "Yaakov" ***@***.***> wrote:
With an new build of protogen, the only way (it seems) to define a
namespace is by using option csharp_namespace inside the .proto file.
Since these protobufs are reverse-engineered, I don't think we want to mess
with them.
I might have to try option 2 above and build our own generator.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#478 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AABDsBODfiXClvTpAj5MGZwmQdX8brx1ks5sxYRZgaJpZM4QBdnj>
.
|
Looks like protogen is able to do this now, just need to update it. |
The update is needed now as Valve uses |
I got back to this... I tried to clean up / finish off #686 but there are bugs in protobuf-net 2.4 so we can't use that. They seem to be fixed in 3.0 but we're now blocked waiting on this: |
Resolved by #686. |
The text was updated successfully, but these errors were encountered: