如何在asp.net vnext中使用协议缓冲区?

时间:2022-07-07 02:42:31

I am trying to serialize what my api returns using protobuff net library. I have seen example such as the following http://www.strathweb.com/2013/02/asp-net-web-api-and-protocol-buffers/

我正在尝试使用protobuff网络库来序列化我的api返回的内容。我见过如下例子http://www.strathweb.com/2013/02/asp-net-web-api-and-protocol-buffers/

but I don't know how to handle it on aspnet vnext. I can't seem to find the HttpConfiguration which is needed? I think...I am new to aspnet vnext any help will be appreciated. thanks

但我不知道如何在aspnet vnext上处理它。我似乎无法找到所需的HttpConfiguration?我想......我是aspnet vnext的新手,任何帮助都将不胜感激。谢谢

1 个解决方案

#1


0  

You might want to try the protobuf-portable-net package. Seems to be consumable for coreclr targets. https://www.nuget.org/packages/protobuf-portable-net/

您可能想尝试protobuf-portable-net软件包。似乎是coreclr目标的消耗品。 https://www.nuget.org/packages/protobuf-portable-net/

#1


0  

You might want to try the protobuf-portable-net package. Seems to be consumable for coreclr targets. https://www.nuget.org/packages/protobuf-portable-net/

您可能想尝试protobuf-portable-net软件包。似乎是coreclr目标的消耗品。 https://www.nuget.org/packages/protobuf-portable-net/