You should be able to use "ProtoRoot" property from https://github.com/grpc/grpc/blob/master/src/csharp/BUILD-INTEGRATION.md and import should work fine.
On Wednesday, April 3, 2019 at 10:41:38 AM UTC+2, [email protected] wrote: > > I'm trying to use protobuf + GRPC in a Visual C# project (windows). It all > works fine if my proto files (which are external references outside of the > project) are self-contained (no imports) or reference any well-known > protos. However, I'm struggling to add imports between proto files in my > project. > > > In CLI, I can just use the -I= option to include my Bazel workspace path, > but in VS I don't want to manually add pre-build steps for every file that > imports other proto files in the project. > > > Is there any way to add an import directory to the internal build step > performed by Grpc.Tools to generate C# code from the proto files? I > couldn't find any information about it online. > -- You received this message because you are subscribed to the Google Groups "grpc.io" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at https://groups.google.com/group/grpc-io. To view this discussion on the web visit https://groups.google.com/d/msgid/grpc-io/cc97d33c-e1d4-4a2d-955c-2634e304b21a%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
