protobuf-net port到.net core 2.0

Roh*_*rma -4 .net c# protobuf-net .net-core

我需要.net core 2.0上的谷歌协议缓冲区.我知道.net core 2.0上没有正式的google proto缓冲区实现,但是protobuf-net可以移植到.net core 2.0吗?

我尝试自己移植它,我看到该库使用的AppDomain.CurrentDomain.DefineDynamicAssembly尚未移植到.net核心.

另外.net WEBAPIController如何使用google协议缓冲区?

Mar*_*ell 5

nuget上的Protobuf-net已经支持net standard 1.3及以上版本,其中包括你需要的内容.使用protobuf-net没有什么需要做的.