简体   繁体   English

protoc-gen-grpc 文件名、目录名或卷标语法不正确

[英]protoc-gen-grpc The filename, directory name, or volume label syntax is incorrect

Hi I'm tring to build a C# program which uses protobuf.嗨,我正在尝试构建一个使用 protobuf 的 C# 程序。 When I do it on my computer everything is fine.当我在我的电脑上这样做时,一切都很好。 But I copied the project to another computer and try to rebuild the program and that error comes out.但是我将项目复制到另一台计算机并尝试重建程序,结果出现了错误。

protoc-gen-grpc The filename, directory name, or volume label syntax is incorrect

I'm using VisualStudio 2019 and on indication about where or what line causes the problem.我正在使用 VisualStudio 2019 并指出导致问题的位置或线路。 There are countless lins of code so I don't know what to show.有无数的代码,所以我不知道要展示什么。 I've serched the google but usually finds answers for this error我已经搜索过谷歌,但通常会找到此错误的答案

The filename, directory name, or volume label syntax is incorrect

or或者

protoc-gen-grpc: The system cannot find the file specified

this error.这个错误。

It's confusing.这很混乱。

TL;DR protoc-gen-grpc is a plugin for the protoc compiler that enables it to generate gRPC sources for one of the supported languages eg C# TL; DR protoc-gen-grpc对于一个插件protoc编译器,使其能够产生GRPC源所支持的语言例如C#中的一个

The compiler ( protoc ) converts protocol buffers files to language-specific sources.编译器 ( protoc ) 将协议缓冲区文件转换为特定于语言的源。 gRPC extends protocol buffers. gRPC 扩展了协议缓冲区。 In order to generate source code from gRPC protos you often need 2 plugins for each language.为了从 gRPC protos 生成源代码,您通常需要为每种语言安装 2 个插件。 One to generate the proto messages and another (in your case protoc-gen-grpc ) to compile the services/rpcs.一个用于生成 proto 消息,另一个(在您的情况下protoc-gen-grpc )用于编译服务/rpcs。

C# is additionally confusing because you've .NET Framework and .NET Core and, it appears, there's a new implementation. C# 也令人困惑,因为您拥有 .NET Framework 和 .NET Core,而且似乎有一个新的实现。

I recommend you view the gRPC for .NET content on gRPC and The future of gRPC in C# belongs to grpc-dotnet我建议你查看GRPC为.NET上的内容GRPCGRPC在C#的未来属于GRPC,DOTNET

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 文件名,目录名或卷标语法不正确,File.Copy - The filename, directory name, or volume label syntax is incorrect, File.Copy windres:文件名,目录名或卷标签语法不正确 - windres: The filename, directory name, or volume label syntax is incorrect C#OpenFileDialog:文件名,目录名称或卷标签语法不正确 - C# OpenFileDialog: The filename, directory name, or volume label syntax is incorrect 文件名、目录名或卷 label 语法不正确,c# - The filename, directory name, or volume label syntax is incorrect, c# 文件流 - 文件名、目录名或卷 label 语法不正确 - Filestream - The filename, directory name, or volume label syntax is incorrect 文件名、目录名或卷 label 不正确 - The filename, directory name or volume label is incorrect FtpClient.GetListing(path)返回“文件名,目录名或卷标签语法不正确” - FtpClient.GetListing(path) returns “The filename, directory name, or volume label syntax is incorrect” File.Copy 抛出“文件名、目录名或卷 label 语法不正确”错误 - File.Copy Throwing throw “The filename, directory name, or volume label syntax is incorrect” error 文件名,目录名称或卷标签语法不正确。 (来自HRESULT的异常:0x8007007B) - The filename, directory name, or volume label syntax is incorrect. (Exception from HRESULT: 0x8007007B) 如何修复System.Net.WebException:'文件名,目录名或卷标签语法不正确 - How do I fix System.Net.WebException: 'The filename, directory name, or volume label syntax is incorrect
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM