[英]protobuf-csharp-port what version(s) of these tools are best to use today?
On a Mac, using Mono 2.6, and wanting to get started with protobuf-csharp-port. 在Mac上,使用Mono 2.6,并希望开始使用protobuf-csharp-port。
I just compiled protoc from protobuf-2.3.0 from google. 我刚刚从Google的protobuf-2.3.0编译了protoc。 Or should I use protobuf-2.4.0 which recently came out?
还是应该使用最近发布的protobuf-2.4.0? Also for protobuf-csharp-port should I use the Download of 0.9.1 (May 2010) or go ahead and clone the Git master branch?
同样对于protobuf-csharp-port,我应该使用0.9.1下载(2010年5月)还是继续克隆Git master分支?
So, looks like successfully compiled the AddressBook tutorial using 2.3.0 + 0.9.1. 因此,看起来好像使用2.3.0 + 0.9.1成功编译了AddressBook教程。 Wanting to know if it's advisable to go with protoc 2.4.0 + git master?
是否想建议使用protoc 2.4.0 + git master?
Thanks in advance and looking forward to digging in to protobuf-csharp-port. 在此先感谢您,并期待深入探究protobuf-csharp-port。 Alex
亚历克斯
I can't say I've used protobuf-csharp-port on a Mac. 我不能说我在Mac上使用过protobuf-csharp-port。 It's probably best to go with the 2.3.0 build of protobuf as that's the version of protoc I use on Windows.
这也可能是最好的去与2.3.0构建的protobuf的因为这是我在Windows上使用protoc的版本。
I would suggest using the latest version of protobuf-csharp-port on github; 我建议在github上使用最新版本的protobuf-csharp-port; that includes a few new features in ProtoGen such as automatically calling protoc for you - although it assumes protoc.exe, so you'll need to tinker with it to call the Mac version.
其中包括ProtoGen的一些新功能,例如自动为您调用protoc-尽管它假定protoc.exe,所以您需要对其进行修补才能调用Mac版本。 You can also specify various of the generation options from the command line instead of "polluting" an otherwise portable .proto file, which is nice.
您还可以从命令行指定各种生成选项,而不是“污染”原本可移植的.proto文件,这很好。 Unfortunately I don't have documentation for that yet, but feel free to ask for information on any specific bit :)
不幸的是,我还没有相关的文档,但是随时可以询问任何特定的信息:)
The github repository also has support for the "lite" runtime, if that's useful to you. github存储库还支持“精简版”运行时,如果这对您有用的话。 That's a reasonably recent addition which hasn't had as much usage as the rest yet, just to warn you.
这是最近才出现的合理补充,它并没有像其余的那样被广泛使用,只是为了警告您。 I don't know of any problems, but just be aware of its recentness :)
我不知道有什么问题,但是请注意它的最新性:)
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.