Re: [protobuf] Protobuf Compiler in a C# Shared Library

2021-04-19 Thread Marc Gravell
The tooling package you need here is Grpc.Tools, which should work fine in a class library. On Sun, 18 Apr 2021 at 23:08, Chris Langlois wrote: > Thanks for the recommendations. I can add .proto files to the Shared > projects. What I cannot do is add a build action for "protobuf compiler" to >

Re: [protobuf] Protobuf Compiler in a C# Shared Library

2021-04-18 Thread Chris Langlois
Thanks for the recommendations. I can add .proto files to the Shared projects. What I cannot do is add a build action for "protobuf compiler" to enable automatic compilation in Visual Studio. For some reason that doesn't seem to work within a shared project in particular. I tried manually

Re: [protobuf] Protobuf Compiler in a C# Shared Library

2021-04-18 Thread Marc Gravell
What is stopping you from adding them to the shared project? What TFM is it targeting? This should JustWorkTM. You could also look at the csproj changes in the client and server, and try to apply the same changes in the shared project - it might tell you why it isn't happy. On Sun, 18 Apr 2021,

[protobuf] Protobuf Compiler in a C# Shared Library

2021-04-18 Thread Chris Langlois
I'm using Protobuf and Visual Studio C#. I have a Client project, Server project, and and shared project. I want my proto file and messages to live within the shared project. I'm installed the Nuget packages for protobuf, protobuf tools, grpc, grpc core, and grpc tools into both my client and