Xamarin.iOS上的Splat :RectangleF和PointF的问题

我试图在Xamarin Studio的Xamarin.iOS项目中拥抱新的PCL乐趣。 我为我的项目创build了PCL“Core”库,并通过NuGet添加了Splat ( v0.3.4 )。 然后,在一个耗费的iOS项目中,我引用了我的核心库。 一旦我这样做了,就会出现一些编译错误。

其中之一:

Error CS0012: The type `System.Drawing.PointF' is defined in an assembly that is not referenced. Consider adding a reference to assembly `Splat.Portable, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null' (CS0012) 

其中多个:

 Error CS0029: Cannot implicitly convert type `System.Drawing.PointF [monotouch, Version=0.0.0.0, Culture=neutral, PublicKeyToken=84e04ff9cfb79065]' to `System.Drawing.PointF [Splat.Portable, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null]' (CS0029) 

看起来这是在从03.3.4命中NuGet的Splat拉入请求中解决的。 跟着笔记一起,我在iOS项目中添加了对Splat.Portable.dll的引用。 当我这样做时,编译错误会改变,抱怨太多的types定义。

 Error CS0433: The imported type `System.Drawing.RectangleF' is defined multiple times (CS0433) Error CS0433: The imported type `System.Drawing.PointF' is defined multiple times (CS0433) 

是否有可能使用Xamarin Studio 4.2.1(Xamarin.iOS 7.0.4.209)和Splat 0.3.4来解决这些错误,还是我需要用它的types转发可怕性构build最新代码?

是的,明天我会build立一个Splat的新版本,但是从源头上构build也会解决这个问题。

编辑:摔跤1.0是活的,并包含此错误的修复

更新摔跤到最后的版本(1.6.2) – 摔跤1.3.3仍然有这个问题。

Interesting Posts