msgpack / msgpack-cli

MessagePack implementation for Common Language Infrastructure / msgpack.org[C#]
http://msgpack.org
Apache License 2.0
835 stars 175 forks source link

Xamarin PCL support #210

Open cdupuis789 opened 7 years ago

cdupuis789 commented 7 years ago

Hello,

Do you have any plan to release a version for PCL Xamarin project ?

Thanks.

yfakariya commented 7 years ago

Currently, no. Xamarin drops are implemented in dedicated assemblies due to AoT (Ahead of Compilation). Do you want to make PCL project which depends on msgpack? (I just want to know scenario/use case of Xamarin PCL)

cdupuis789 commented 7 years ago

Hi,

In fact, I would like to put all my serializable class and Msgpack function in a Xamarin Forms project.

For Msgpack pack function i may be able to create an interface with Droid and iOs project.

But for class, i don't think i will be able to add index annotation like [MessagePackMember(0)] in Xamarin Forms Project.

Regards.

yfakariya commented 7 years ago

I see, thanks! As long as I know, I think you can use shared project, but it should be restricted by msgpack.

Although I cannot commit the date to be available .NET Standard 1.3 assembly supports Xamarin.iOS (in fact, .net standard drop should work in Xamarin.Android and others as long as they do not use AOT), I will enable Xamarin in .net standard assembly.

yfakariya commented 7 years ago

Note: Xamarin.Forms should be support netstandard 1.0 in next release, but AOT consideration should be needed.