Does MvvmCross work in Xamarin Studio?

I have time to get a direct answer to this, I searched and read many times, and tried many times. Sometimes it sounds differently, and in other cases it sounds only as much as possible, making a connection and what is not, which I try to avoid. I am a big fan of PCL.

I created a solution using Visual Studio 2012, Xamarin and MvvmCross that works fine, I can deploy an iOS device, a Droid device, Windows --- whatever you have. Visual Studio can create working applications that can be deployed to specific platforms.

However, I was recently informed that our company requires that upon deployment, the code must be built on a Mac using Xamarin Studio on their build server. Therefore, since then I have been working on trying to open and build everything using Xamarin Studio, and I'm close, but the notorious issue with ICommand is my last hurdle.

Is there, or not, a way to properly get ICommands and the System.Windows library in Xamarin Studio? Am I really stuck until Xamarin releases PCL support?

+4
source share
1 answer

Does MvvmCross work in Xamarin Studio?

Yes

To prove this:

  • several of the N + 1 videos show that this is being used.
  • many samples (all non-nuget) that are created and run from XS

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

Currently, the problem is that in the Stable branches, the xamarin compiler does not like importing PCL MvxCommand , which inherits from ICommand

It is hard to solve this problem:

  • rewriting Xamarin tools to support PCL is what the shiny, beautiful, and very smart Xamarin monkeys are currently doing :)

Or ... a little easier to solve this problem:

Or ... a very simple way to solve this problem:

  • instead of MvxCommand in your view models, just implement your own MyCommand class to implement System.Windows.Input.ICommand (for example, use the implementation at http://www.lines-davies.net/blog/?p=24 )

Am I really stuck until Xamarin releases PCL support?

I don’t think so, but where do you encounter problems:

  • please return to sites like StackOverflow, with one specific problem at a time - this site is great for finding solutions one at a time :)
  • talk with Xamarin support - they are usually very helpful when trying to solve problems.

What else, even if you are stuck in waiting ... then Xamarin already released PCL support for the alpha channel - so the wait was almost over :)

+5
source

Source: https://habr.com/ru/post/1488728/


All Articles