Skip to content
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

[Question] Does the library supports generating .proto file that imports other .proto files? #1

Open
linhnt-sipher opened this issue Feb 11, 2025 · 0 comments

Comments

@linhnt-sipher
Copy link

linhnt-sipher commented Feb 11, 2025

I have a .proto, called cat.proto, the proto imports other proto, called color.proto.

When I build the project to generate, I got the warning:

7>CSC: Warning CS8785 : Generator 'ProtobufSourceGenerator' failed to generate source. It will not contribute to the output and compilation errors may occur as a result. Exception was of type 'DirectoryNotFoundException' with message 'Could not find a part of the path 'C:\Program Files\dotnet\sdk\8.0.206\Roslyn\bincore\sa\blueprint\color.proto'.'.

With Grpc.Tools, it supports AdditionalImportDirs to allow me add a folder that contains cat.proto

Please help to check. Thanks

@linhnt-sipher linhnt-sipher changed the title [Question] Does the library supports generating .proto files that reference other .proto files? [Question] Does the library supports generating .proto file that imports other .proto files? Feb 11, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant