Search code examples
c#androidmvvmcrossdot42

Use MvvmCross with dot42


I'm currently trying some techniques for writing Android programs with C#. I found MvvmCross that is really nice for an old WPF programmer. Sadly, the free Xamarin version does not allow the use of MvvmCross, and licences are far too expensive for playing around.

Now i stumbles across dot42, but could not manage to load MvvmCross into a dot42 project via nuget. I get

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.

so I guess, Dot42 isn't supported by MvvmCross. Is it possible to use MvvmCross with dot42?


Solution

  • You won't currently be able to easily use nuget with dot42 - nuget hasn't yet added any extension for them.

    Also, you won't be able to use MonoDroid-targetted assemblies for dot42 - those assemblies are built against Xamarin's runtime - not dot42.

    However... if anyone wanted to get MvvmCross working against dot42, then I believe this should be possible - as dot42 supports quiet a good .Net functionality set, including PCLs. To do so would require editing the source code, cloning the MonoDroid projects and then changing the code that targets Xamarin/MonoDroid runtime objects to instead target the dot42 equivalents. I'd personally love to see this done, but haven't had time to work on it myself.