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, 19:43 Chris Langlois, <crlangl...@gmail.com> wrote:

> 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
> server projects (you cant add them to a shared project). The build action
> for the proto file in my shared project cannot be changed to Protobuf
> compiler for automatic compilation like it can if I put the .proto in
> either the client or server project.
>
> Any thoughts on a better architecture or what I might be doing wrong here.
> This seems like it should be a common architecture but it seems to be a
> real struggle.
>
> Thanks!
>
> --
> You received this message because you are subscribed to the Google Groups
> "Protocol Buffers" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to protobuf+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/protobuf/e9a8e8e4-e085-47aa-8f62-c34d65e9b11an%40googlegroups.com
> <https://groups.google.com/d/msgid/protobuf/e9a8e8e4-e085-47aa-8f62-c34d65e9b11an%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>

-- 
You received this message because you are subscribed to the Google Groups 
"Protocol Buffers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to protobuf+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/protobuf/CAF95VAyAwRR-b4_2gmb2CkGuiQobyKRUQSi5pPACCRuNBmPQXw%40mail.gmail.com.

Reply via email to