Tag: 可移植类库

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的引用。 […]