Client app setup to use Grpc.Tools version 2.39.0-pre1 errors when compiled.
csproj:
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>net5.0</TargetFramework>
</PropertyGroup>
<ItemGroup>
<Protobuf Include="Protos\greet.proto" GrpcServices="Client" />
<PackageReference Include="Google.Protobuf" Version="3.17.3" />
<PackageReference Include="Grpc.Net.Client" Version="2.38.0" />
<PackageReference Include="Grpc.Tools" Version="2.39.0-pre1">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
</ItemGroup>
</Project>
Proto: (I don't think this matters)
syntax = "proto3";
option csharp_namespace = "GrpcService57";
package greet;
// The greeting service definition.
service Greeter {
// Sends a greeting
rpc SayHello (HelloRequest) returns (HelloReply);
}
// The request message containing the user's name.
message HelloRequest {
string name = 1;
}
// The response message containing the greetings.
message HelloReply {
string message = 1;
}
Error:
Protos/greet.proto: Unknown generator option: no_server

Changing Grpc.Tools to 2.38.0 fixes the problem
@apolcyn @jtattermusch
Client app setup to use Grpc.Tools version 2.39.0-pre1 errors when compiled.
csproj:
Proto: (I don't think this matters)
Error:
Changing Grpc.Tools to
2.38.0fixes the problem@apolcyn @jtattermusch