-
-
Notifications
You must be signed in to change notification settings - Fork 114
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
Generate .proto files during build time from a .NET contract assembly #317
Comments
Right now, there's no inbuilt mechanism to do this. We have spiked the AOT work for protobuf-net (which shares 95% of the logic with this need) but that is paused at the moment (I've recently shipped Dapper.AOT, and will need to carry over a lot of the learning points from that to this). We're probably another 6 months out from having this, as it needs to come from my free/spare time, unless someone needs it urgently enough to sponsor it. |
Thanks for the answer and looking forward if this feature become available at some point. |
+1 on this, this is the only thing preventing me for using protobuf-net in production, because one of the main features of grpc are contracts that can be used language agnostic. ¿How am i supposed to share contracts with my clients if they don't use C#? |
Hi @mgravell, |
On the "unable to add order" thing - maybe consider On the feature: not currently, I'll need to juggle my workload and see what I can do, but it is hard to make promises since this ultimately comes from my spare time, which is limited. |
Hello,
I have a rather complex SDK framework where all of the RPC contracts were defined in C# and marked with DataContract & DataMember attributes. I have recently allowed our RPC services to allow serialize using protobuf protocol with good success.
I'm looking now for a way to produce valid and compatible proto files so we can have regular gRPC clients in other languages to interact with our services.
I understand some there is an API to allow the generation but i would prefer an msbuild task to do this job during build time like the opposite happen from .proto files to C#.
I'm missing a project that show this? Most of the discussion are related to the SchemaGenerator but mostly showing the way to write a tool or doing this on runtime.
Also i notice that most of the .NET API to generate proto is based on a [ServiceContract] attribute. Would like to know if there are other ways to trigger .proto generation for example a set of classes from a namespace regardless they participate on a service contract.
Thanks in advance,
The text was updated successfully, but these errors were encountered: