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
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