[英]Protobuf Precompiler
From Visual Studio I have used NuGet to grab the latest protobuf-net library (Version 2.0.0.640). 从Visual Studio中,我已使用NuGet来获取最新的protobuf-net库(版本2.0.0.640)。 In this blog post by Marc Gravell , there is a protobuf-net precompiler discussed:
在Marc Gravell的这篇博客文章中,讨论了一个protobuf-net预编译器:
For example, say I create a new Phone 7 DTO assembly, called PhoneDto (because it is late and I lack imagination).
例如,假设我创建了一个新的Phone 7 DTO组件,称为PhoneDto(因为它太晚了,我缺乏想象力)。 I can then create a serialization assembly via:
然后,我可以通过以下方式创建序列化程序集:
precompile {some path}\\PhoneDto.dll –o:PhoneSerializer.dll –t:MySerializer
This will generate a library called PhoneSerializer.dll, which you can reference from your main project (in addition to the DTO and the protobuf-net core).
这将生成一个名为PhoneSerializer.dll的库,您可以从主项目中引用该库(除了DTO和protobuf-net核心)。
I've searched for the precompile
program in the NuGet package, but it seems like it is missing. 我已经在NuGet包中搜索了
precompile
程序,但似乎缺少它了。
Am I missing something? 我想念什么吗?
Is there a NuGet package that includes the precompiler? 是否有包含预编译器的NuGet软件包?
If not, where can I get it? 如果没有,我在哪里可以得到?
The precompile tool is currently only available in the code.google.com download ; 当前仅可在code.google.com下载中使用预编译工具; however, adding a second NuGet package (protobuf-net.tools, or similar) with the command-line utilities is on my todo list.
但是,在我的待办事项列表中添加了第二个带有命令行实用程序的NuGet程序包(protobuf-net.tools或类似程序)。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.