Skip to content

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

@linhnt-sipher

Description

@linhnt-sipher

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions