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

Grpc.AspNetCore.Server.Reflection doesn't work with shared proto file. #2462

Open
plombaer opened this issue Jun 7, 2024 · 2 comments
Open
Labels
enhancement New feature or request

Comments

@plombaer
Copy link

plombaer commented Jun 7, 2024

Dear
I've shared assembly containing a proto file.
The project look like this :

  <ItemGroup>
    <Protobuf Include="protos\test.proto" />
    <!-- Set visible to false so the file doesn't show up in solution explorer twice -->
    <Content Include="protos\test.proto" Pack="true" Visible="false" />
  </ItemGroup>

The server project :

<PackageReference Include="blabla" Version="1.0.0" GeneratePathProperty="true" />
  <ItemGroup>
    <Protobuf Include="Protos\stuff.proto" AdditionalImportDirs="$(Pkg...)\content\Protos" />
  </ItemGroup>

When I use gRPCUI I get the following error :
Failed to compute set of methods to expose: Symbol not found: test
caused by: File not found: test.proto

Is there a way to make it work with reflection ?
Thanks

@plombaer plombaer added the enhancement New feature or request label Jun 7, 2024
@JamesNK
Copy link
Member

JamesNK commented Jun 10, 2024

I think this is the same as #1946

@plombaer
Copy link
Author

I think in the case described the shared proto/assembly is in the same solution.
I'm using the following technique to share proto file.
how-to-share-grpc-proto-definitions-of-custom-types-via-nuget

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants