1
我正在使用Protobuf插件来生成一些定制的C#代码,并给定一组Protobuf文件。它在Linux上运行良好,我也想在Windows上运行它,以便直接从我的Visual Studio项目生成此代码。如何在Windows上运行protobuf python插件
这里是我的(失败)使用当前的命令行:
path\to\protoc.exe --plugin=protoc-gen-my-plugin=path\to\my-plugin.py --my-plugin_out=output\path\gen my_proto.proto
这里是我得到的错误:
- 我 - plugin_out:protoc-gen-我的插件:%1没有应用程序Win32 valide。
我安装了Python 2.7.11,它在我的路径中。我也尝试使用x86和x64可执行文件运行protoc.exe。
有什么限制我不知道或者我错过了什么?