client only in c#

29 views
Skip to first unread message

Martin Scholz

unread,
Mar 15, 2019, 5:52:26 AM3/15/19
to grpc.io
Is there a way to create a client only dll which doesn't contains the server implementation. Because in the sample from github when you build the solution it creates a HelloWorldGrpc.cs file with all the stuff in one namespace which is needed for both client and server. What i want is a separate output for server and client. Is this possible?

Thx!

Martin Scholz

unread,
Mar 18, 2019, 3:17:42 AM3/18/19
to grpc.io

Benjamin Krämer

unread,
Mar 19, 2019, 9:54:42 AM3/19/19
to grpc.io


You can either change this through Visual Studio by clicking on the proto and choose "Client only" from the "gRPC Stub Classes" entry. Or you can update the entry in your csproj:

<ItemGroup>
    <Protobuf Include="my_file.proto" GrpcServices="Client" />
</ItemGroup>
Reply all
Reply to author
Forward
0 new messages