GRPC使用問題修復

孤海飞雁發表於2024-04-16
在VS手動時新增discount.proto 檔案,在繼承這個物件會找不到

在Discount.Grpc.csproj裡新增就ok <ItemGroup> <None Remove="Protos\discount.proto" /> </ItemGroup> <ItemGroup> <Protobuf Include="Protos\discount.proto" GrpcServices="Server" /> </ItemGroup>

  

相關文章