Skip to content

C# and proto2 + GTFS Realltime #6067

Closed as not planned
Closed as not planned
@wirthandras

Description

Hi!

I am started to working with GTFS Realtime which proto file written in proto2 syntax.
https://github.com/google/transit/blob/master/gtfs-realtime/proto/gtfs-realtime.proto

My company works with C# code base, So I installed the latest version of protoc (v3.7.1). And I tried to generate C# classes based on this proto file, but I got a message the proto3 syntax supported only with C# programming language. Note: Our contractor has own extension for GTFS Realtime. This is the reason why I need to generate. (instead of using existing nuget packages)

What are my possibilities?

In my mind I see few way:

  1. To ask Google to upgrade proto2 to proto3 (may be impossible)
  2. Find an older version of protoc which may be support C# + proto2
  3. https://github.com/jskeet/protobuf-csharp-port
  4. Change programming language

As I see according to the gathered information the best way is the change programming language.

Can anybody give me a little guidance, maybe something was hidden for me?

Thanks!

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

Labels

c#enhancementinactiveDenotes the issue/PR has not seen activity in the last 90 days.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions