I am trying to do a simple gRPC tutorial. Initial I started with Jetbrains Rider by creating a new gRPC service, then I created a console app for the client and installed:
Google.Protobuf - 3.11.4
Grpc.Net.Client - 2.28.0-pre2
Grpc.Tools - 2.28.0-pre3
It doesn't look like the generated code for the greet.proto is being generated as I am getting red squigglies var client = new Greeter.GreeterClient(channel);
However, when I open the project in Visual Studio, everything seems to work. Am I missing a plugin or something here?
My csproj
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>netcoreapp3.1</TargetFramework>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Google.Protobuf" Version="3.11.4" />
<PackageReference Include="Grpc.Net.Client" Version="2.28.0-pre2" />
<PackageReference Include="Grpc.Tools" Version="2.28.0-pre3" />
</ItemGroup>
<ItemGroup>
<Protobuf Include="Protos\greet.proto">
<GrpcServices>Client</GrpcServices>
<OutputDir>obj\Debug\netcoreapp3.1\</OutputDir>
<Access>Public</Access>
<ProtoCompile>True</ProtoCompile>
<ProtoRoot></ProtoRoot>
<CompileOutputs>True</CompileOutputs>
<Generator>MSBuild:Compile</Generator>
</Protobuf>
</ItemGroup>
</Project>