C
C#2y ago
CrosRoad95

❔ Source generator & protobuf

Is it possible to use source generator or other thing to generate custom code from proto files? let's say i have:
message HelloRequest {
string name = 1;
}
message HelloRequest {
string name = 1;
}
and i would like to generate for example an create a class HelloRequestFoo { public string name {get;set;} } - just an abstract example ping me if you know
6 Replies
333fred
333fred2y ago
The question is from proto files, not the other way around @CrosRoad95 what have you tried so far? This would be fairly straightforward
CrosRoad95
CrosRoad95OP2y ago
I first wanted to ask before i start working on it Perhaps i have to use c# generated files?
333fred
333fred2y ago
$ig
333fred
333fred2y ago
That's the doc you want to read The first example is particularly relevant, though your generator will obviously need to do quite a bit more work
Accord
Accord2y ago
Was this issue resolved? If so, run /close - otherwise I will mark this as stale and this post will be archived until there is new activity.
Want results from more Discord servers?
Add your server