gRPC Net 5 Creates csproj for the Client

    0

    1

    lucycodes42

    C# recipes

    The code references Proto files for Google.Protobuf and Grpc.Net.Client. It also references Grpc.Tools, which is a NuGet package.

    Shortcut: g_r_p_c_client_csproj

    <Project Sdk="Microsoft.NET.Sdk.Web">
    
      <PropertyGroup>
        <TargetFramework>net5.0</TargetFramework>
      </PropertyGroup>
    
      <ItemGroup>
        <Protobuf Include="..\Proto\greet.proto" GrpcServices="Client" Link="Protos\greet.proto" />
    
        <PackageReference Include="Google.Protobuf" Version="3.13.0" />
        <PackageReference Include="Grpc.Net.Client" Version="2.33.1" />
        <PackageReference Include="Grpc.Tools" Version="2.33.1" PrivateAssets="All" />
      </ItemGroup>
    
    </Project>
    Codiga Logo
    Codiga Hub
    • Rulesets
    • Playground
    • Snippets
    • Cookbooks
    Legal
    • Security
    • Privacy Policy
    • Code Privacy
    • Terms of Service
    soc-2 icon

    We are SOC-2 Compliance Certified

    G2 high performer medal

    Codiga – All rights reserved 2022.