gRPC Net 5 Creates csproj for the Server

    0

    0

    lucycodes42

    C# recipes

    This code defines a project that will use the .NET 5.0 target framework and the ProtoBuf library to create a protocol buffer service that can be used by other projects.

    Shortcut: g_r_p_c_server_csproj

    <Project Sdk="Microsoft.NET.Sdk.Web">
    
      <PropertyGroup>
        <TargetFramework>net5.0</TargetFramework>
      </PropertyGroup>
    
      <ItemGroup>
        <Protobuf Include="..\Proto\greet.proto" GrpcServices="Server" Link="Protos\greet.proto" />
    
        <PackageReference Include="Grpc.AspNetCore" Version="2.33.1" />
      </ItemGroup>
    
    </Project>
    Codiga Logo
    Codiga Hub
    • Rulesets
    • Explore
    • Cookbooks
    • Playground
    soc-2 icon

    We are SOC-2 Compliance Certified

    G2 high performer medal

    Codiga – All rights reserved 2022.