Re: Status of C# Projects?
For what it is worth, protobuf-net now has code generation support*, and handles that file fine; http://code.google.com/p/protobuf-net/source/browse/trunk/Examples/person.cs Marc [*=OK, it is a work in progress - I haven't added handlers for all the combinations yet, but doesn't need much more work] --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Protocol Buffers group. To post to this group, send email to protobuf@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/protobuf?hl=en -~--~~~~--~~--~--~---
Re: Status of C# Projects?
On Oct 28, 12:04 am, honce [EMAIL PROTECTED] wrote: We are looking at the dotnet-protobufs for a new and are unable to build the generated C# code. I downloaded the latest code out of git and have been successful in building a C# file. We have been running: protoc -operson.bin person.proto protogen person.bin We add person.cs to our solution and rebuild with VS2008sp1 targeted for .Net 3.5sp1 on WinXP sp3. We then get the following error: Person.cs(7,29): error CS0441: 'Person': a class cannot be both static and sealed Odd. It certainly sounds like a straight bug, but I'm amazed that I haven't seen it elsewhere. Do you not specify a package or namespace anywhere? That may be relevant (although it's still a bug in protogen, of course). Look at the unit tests for examples of how to specify things - I'm hoping to make it simpler in terms of the csharp_options.proto and descriptor.proto dependencies over time. Jon --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Protocol Buffers group. To post to this group, send email to protobuf@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/protobuf?hl=en -~--~~~~--~~--~--~---
Re: Status of C# Projects?
We added package tex; and got the same results. We'll take a better look at the unit tests next. FYI -- I did notice there are no proto files in the *.Test directories I downloaded with git. /jwh On Oct 28, 4:11 am, Jon Skeet [EMAIL PROTECTED] wrote: On Oct 28, 12:04 am, honce [EMAIL PROTECTED] wrote: We are looking at the dotnet-protobufs for a new and are unable to build the generated C# code. I downloaded the latest code out of git and have been successful in building a C# file. We have been running: protoc -operson.bin person.proto protogen person.bin We add person.cs to our solution and rebuild with VS2008sp1 targeted for .Net 3.5sp1 on WinXP sp3. We then get the following error: Person.cs(7,29): error CS0441: 'Person': a class cannot be both static and sealed Odd. It certainly sounds like a straight bug, but I'm amazed that I haven't seen it elsewhere. Do you not specify a package or namespace anywhere? That may be relevant (although it's still a bug in protogen, of course). Look at the unit tests for examples of how to specify things - I'm hoping to make it simpler in terms of the csharp_options.proto and descriptor.proto dependencies over time. Jon --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Protocol Buffers group. To post to this group, send email to protobuf@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/protobuf?hl=en -~--~~~~--~~--~--~---
Re: Status of C# Projects?
Cool. We'll take it out for a spin and see what happens. /jwh On Oct 28, 12:35 am, Marc Gravell [EMAIL PROTECTED] wrote: For what it is worth, protobuf-net now has code generation support*, and handles that file fine; http://code.google.com/p/protobuf-net/source/browse/trunk/Examples/pe... Marc [*=OK, it is a work in progress - I haven't added handlers for all the combinations yet, but doesn't need much more work] --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Protocol Buffers group. To post to this group, send email to protobuf@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/protobuf?hl=en -~--~~~~--~~--~--~---
Re: Status of C# Projects?
On Oct 28, 12:04 am, honce [EMAIL PROTECTED] wrote: We are looking at the dotnet-protobufs for a new and are unable to build the generated C# code. I downloaded the latest code out of git and have been successful in building a C# file. We have been running: protoc -operson.bin person.proto protogen person.bin We add person.cs to our solution and rebuild with VS2008sp1 targeted for .Net 3.5sp1 on WinXP sp3. We then get the following error: Person.cs(7,29): error CS0441: 'Person': a class cannot be both static and sealed Any suggestions on what we're doing wrong? Got it - the problem here is that it's generating a Person type as the umbrella class, and also Person as the message. You could either specify the name of the umbrella class as an option, or just rename person.proto to (say) person_protofile.proto. It would then create PersonProtoFile.cs with a PersonProtoFile umbrella class, and a Person class for the Person message. The resulting file definitely does compile :) I'll try to remember to add a check for that situation - I suspect I won't be able to catch everything like that, but I'll do what I can. Jon --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Protocol Buffers group. To post to this group, send email to protobuf@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/protobuf?hl=en -~--~~~~--~~--~--~---
Re: Status of C# Projects?
Thanks for the responses! We are using protocol buffers heavily now... I might be able to round up some C# developers to test one of those implementations... no promises, but if I do I will make another post. Ben On Oct 6, 5:43 pm, Marc Gravell [EMAIL PROTECTED] wrote: Oh - I forgot to say: no 2.0.2 support yet ;-p Marc --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Protocol Buffers group. To post to this group, send email to protobuf@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/protobuf?hl=en -~--~~~~--~~--~--~---
Status of C# Projects?
Are any of the C# protobuf implementations close to being stable? I checked the sites and couldn't really tell (although maybe I missed something). Thanks, Ben --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Protocol Buffers group. To post to this group, send email to protobuf@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/protobuf?hl=en -~--~~~~--~~--~--~---
Re: Status of C# Projects?
On Oct 6, 3:14 pm, Ben J [EMAIL PROTECTED] wrote: Are any of the C# protobuf implementations close to being stable? I checked the sites and couldn't really tell (although maybe I missed something). The backing library for my implementation (whatever you want to call it!) is pretty stable, but the code generator isn't. Or rather, the code generator as part of protoc is stable at v2.0.1. I'm working on a code generator implemented in C# itself, which will take the binary output of protoc and generate C#. That will take a little while to finish, unfortunately. I can't remember the status of what's in github, but if you don't mind the 2.0.1 restriction you could probably use protoc from there for the moment. You'll need to change your .proto files to use the new language-specific-option syntax when the new generator's finished, of course, but that shouldn't be much of an issue. I'd welcome any testers for my implementation, and could certainly give help/advice if you run into any issues. Jon --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Protocol Buffers group. To post to this group, send email to protobuf@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/protobuf?hl=en -~--~~~~--~~--~--~---