MvvmCross是否可以在Xamarin Studio中使用? [英] Does MvvmCross work in Xamarin Studio?

查看:71
本文介绍了MvvmCross是否可以在Xamarin Studio中使用?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我现在有一个直接的答案,我做了很多搜索和阅读,并且尝试了很多东西.有时候听起来可能可行,而有时只有通过链接才能实现,而什么也没有,这是我要避免的事情.我是PCL的忠实粉丝.

I'm having a time getting a straight answer on this, I've done a lot of searches and reading, and tried a lot of stuff. It sometimes sounds possible and other times only sounds possible by doing linking and what-not, which is something I'm trying to avoid. I'm a big fan of PCLs.

我已经使用Visual Studio 2012,Xamarin和MvvmCross创建了一个效果很好的解决方案,我可以将它部署到iOS设备,Droid设备和Windows上,这有什么用. Visual Studio可以构建可以部署到特定平台的有效应用程序.

I've created a solution using Visual Studio 2012, Xamarin, and MvvmCross which works great, I can deploy to an iOS device, a Droid device, Windows --- what have you. Visual Studio can build working applications that I can deploy to specific platforms.

但是,最近我获悉,我们公司要求在进行部署时,必须由Xamarin Studio的构建服务器在Mac上构建代码.因此,从那时起,我一直在努力尝试使用Xamarin Studio打开和构建所有内容,但我已经结束了,但是臭名昭著的ICommand问题是我的最后一个障碍.

However, I was informed recently that our company requires that when we go to deploy, the code must be built on a Mac using Xamarin Studio by their build server. So since then I've been working on trying to open and build everything using Xamarin Studio, and I'm close, but the infamous ICommand issue is my final hurdle.

是否存在一种方法,可以使ICommands和System.Windows库正确地移植到Xamarin Studio中?在Xamarin释放对PCL的支持之前,我真的会坚持吗?

Is there, or is there not, a way to get ICommands and the System.Windows library ported in correctly in Xamarin Studio? Am I truly stuck until Xamarin releases their PCL support?

推荐答案

MvvmCross是否可以在Xamarin Studio中工作?

Does MvvmCross work in Xamarin Studio?

要证明这一点:

  • 相当多的N + 1个视频显示了该视频的使用情况.
  • 很多样本(所有非裸样本)都是通过XS构建和运行的

有没有办法获得ICommands和Xamarin Studio中正确移植的System.Windows库?

Is there, or is there not, a way to get ICommands and the System.Windows library ported in correctly in Xamarin Studio?

当前的问题是,在稳定分支上,xamarin编译器不喜欢从ICommand

The problem currently is that on the Stable branch, the xamarin compiler doesn't like the PCL import of MvxCommand which inherits from ICommand

解决此问题的一个困难方法是:

A hard way around this problem is:

  • 重写Xamarin工具以支持PCL-这就是目前出色,可爱且非常聪明的Xamarin猴子正在做的事情:)

或者...解决这个问题的一种更简单的方法是:

Or... a slightly easier way around this problem is:

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆