grpc/grpc-dotnet

Issue generating proto -> C# binaries when Grpc.Tools/Grpc.AspNetCore is included as an implicit dependency

kboniadi opened this issue · 2 comments

The title pretty much explains it. I've installed a nuget which has Grpc.AspNetCore as a dependency, but when I go to build my application, none of my proto files are compiled into C# classes.

However, if I install Grpc.AspNetCore directly via my csproj file then everything works just fine.

The specific nuget that seems to be the issue is Grpc.Tools. Installing this one directly will solve the issue, but I would really like to find a solution where I can keep all of these grpc dependencies in a library proj and then just install that proj's nuget.

image

I'm guessing this happens because Grpc.Tools msbuild scripts are in the build dir and not also in buildTransitive.

image

The source code for Grpc.Tools is in https://github.com/grpc/grpc. Create an issue there.

@JamesNK thanks for the help 👍