You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
dotnet-learn-vs/WebMVC/WebMVCApi/md/grpc proto 使用 cpp 插件生成协议文件.md

616 B

icon date category tag headerDepth
edit 2022-12-26
系统配置
grpc
proto
5

grpc proto 使用 cpp 插件生成协议文件

cd D:\vcpkg\grpc_example\proto
#cmd
protoc --proto_path=. --cpp_out=. ModelGongYi.proto
protoc --proto_path=. --grpc_out=. --plugin=protoc-gen-grpc="D:\env\vcpkg\packages\grpc_x64-windows\tools\grpc\grpc_cpp_plugin.exe" ModelGongYi.proto
#poweshell
./protoc --proto_path=. --cpp_out=. calculate.proto
./protoc --proto_path=. --grpc_out=. --plugin=protoc-gen-grpc="D:\env\vcpkg\packages\grpc_x64-windows\tools\grpc\grpc_cpp_plugin.exe" calculate.proto