gpt4 book ai didi

ios - Xamarin.iOS : issues with RectangleF and PointF 上的 Splat [0.3.4]

转载 作者:塔克拉玛干 更新时间:2023-11-01 21:22:26 26 4
gpt4 key购买 nike

我正在尝试在 Xamarin Studio 中的 Xamarin.iOS 项目中享受新的 PCL 乐趣。我为我的项目创建了一个 PCL“核心”库并添加了 Splat ( v0.3.4 ) 通过 NuGet。然后,在一个消费 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)

看起来这是在 pull request to Splat 中解决的自 v0.3.4 命中 NuGet 以来登陆。按照那里的注释,我向 iOS 项目添加了对 Splat.Portable.dll 的引用。当我这样做时,编译错误会变成提示类型定义太多。

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 解决这些错误,或者我是否需要构建具有类型转发功能的最新代码?

最佳答案

是的,明天我将构建一个新版本的 Splat,但是从源代码构建也可以解决这个问题。

编辑:Splat 1.0 已上线并包含此错误的修复

关于ios - Xamarin.iOS : issues with RectangleF and PointF 上的 Splat [0.3.4],我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/20385152/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com