-
Notifications
You must be signed in to change notification settings - Fork 11
Description
dotnet new grpc's run is wrong. may be should port Protobuf MIPS: https://github.com/grpc/grpc
geffzhang@geffzhang-PC2:~/workshop/grpc$ dotnet new grpc
The template "ASP.NET Core gRPC Service" was created successfully.
Processing post-creation actions...
Running 'dotnet restore' on /home/geffzhang/workshop/grpc/grpc.csproj...
Restore completed in 9.94 sec for /home/geffzhang/workshop/grpc/grpc.csproj.
Restore succeeded.
geffzhang@geffzhang-PC2:/workshop/grpc$ ls
appsettings.Development.json grpc.csproj Program.cs Protos Startup.cs
appsettings.json obj Properties Services
geffzhang@geffzhang-PC2:/workshop/grpc$ dotnet run
/home/geffzhang/.nuget/packages/grpc.tools/2.27.0/build/_protobuf/Google.Protobuf.Tools.targets(84,5): error : Google.Protobuf.Tools cannot determine host OS and CPU. [/home/geffzhang/workshop/grpc/grpc.csproj]
/home/geffzhang/.nuget/packages/grpc.tools/2.27.0/build/_protobuf/Google.Protobuf.Tools.targets(84,5): error : Use environment variables PROTOBUF_TOOLS_OS={linux|macosx|windows} and PROTOBUF_TOOLS_CPU={x86|x64} to try the closest match to your system. [/home/geffzhang/workshop/grpc/grpc.csproj]
/home/geffzhang/.nuget/packages/grpc.tools/2.27.0/build/_protobuf/Google.Protobuf.Tools.targets(84,5): error : You may also set PROTOBUF_PROTOC to specify full path to the host-provided compiler (v3.5+ is required). [/home/geffzhang/workshop/grpc/grpc.csproj]
The build failed. Fix the build errors and run again.
geffzhang@geffzhang-PC2:~/workshop/grpc$