Use MvvmCross with dot42



我目前正在尝试用c#编写Android程序的一些技术。我发现MvvmCross对一个老WPF程序员来说真的很好。遗憾的是,免费的Xamarin版本不允许使用MvvmCross,而许可证也太贵了。

现在我偶然发现了dot42,但无法通过nuget将MvvmCross加载到dot42项目中。我得到了

Could not install package 'MvvmCross.PortableSupport 3.1.1'. You are trying to install this package into a project that targets 'Dot42,Version=v2.3.3', but the package does not contain any assembly references or content files that are compatible with that framework.

所以我猜,Dot42不支持MvvmCross。是否可以使用MvvmCross与dot42?

您目前无法轻松地将nuget与dot42一起使用- nuget尚未为它们添加任何扩展。

另外,您将不能为dot42使用monodroid目标程序集-这些程序集是针对Xamarin的运行时构建的-而不是dot42。

然而

…如果有人想让MvvmCross在dot42上工作,那么我相信这应该是可能的——因为dot42支持一个很好的。net功能集,包括pcl。要做到这一点,需要编辑源代码,克隆MonoDroid项目,然后更改以Xamarin/MonoDroid运行时对象为目标的代码,以替代dot42等效对象。我个人很想看到这个完成,但是我自己没有时间去做。

最新更新