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?

--Jhon Honce

Below is the proto file.

message Person {
  required string name = 1;
  required int32 id = 2;
  optional string email = 3;

  enum PhoneType {
    MOBILE = 0;
    HOME = 1;
    WORK = 2;
  }

  message PhoneNumber {
    required string number = 1;
    optional PhoneType type = 2 [default = HOME];
  }

  repeated PhoneNumber phone = 4;
}

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Protocol Buffers" group.
To post to this group, send email to [email protected]
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to