praeclarum / NGraphics

NGraphics is a cross platform library for rendering vector graphics on .NET. It provides a unified API for both immediate and retained mode graphics using high quality native renderers.
MIT License
705 stars 133 forks source link

Adding NGraphics Causes iOS Build Warning #78

Open PatrickRyder opened 7 years ago

PatrickRyder commented 7 years ago

I have a Xamarin solution, which has the fairly usual format of: MyApplication (Portable), MyApplication.Forms, MyApplication.iOS and MyApplication.Droid.

It builds with no warnings or errors and has done so for some months.

If I add NGraphics 0.4.0 via the package manager in Visual Studio, I get the following build warning on the iOS build:

5>  No way to resolve conflict between "System.Runtime.Serialization, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" and "System.Runtime.Serialization, Version=2.0.5.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e". Choosing "System.Runtime.Serialization, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" arbitrarily.
5>  Serenocalm.iOS -> \MyApp\MyApp.iOS\bin\iPhoneSimulator\Debug\MyAppiOS.exe

How can I fix this?

Kind wishes ~ Patrick

praeclarum commented 7 years ago

I don't really understand what's going on. This seems to be some weird compatibility issue with PCLs and Xamarin.