简体   繁体   English

Xamarin.Mac上的MvvmCross

[英]MvvmCross on Xamarin.Mac

Actually I'm trying to do something like described in this post MvvmCross for WPF and Xamarin.Mac: is it possible? 实际上,我正在尝试执行针对WPF和Xamarin.Mac的MvvmCross这篇文章中所述的操作:可以吗?

I'm new to mvvmcross and I'm trying to add it to my Xamarin.Mac Unified project. 我是mvvmcross的新手,正在尝试将其添加到Xamarin.Mac Unified项目中。 I can't do it through nuget and have a problem with adding needed references. 我无法通过nuget进行操作,并且在添加所需的引用时遇到了问题。 Could someone provide a sample "hello world" xamarin.mac project with mvvmcross? 有人可以提供带有mvvmcross的示例“ hello world” xamarin.mac项目吗?

Today, the state of the mac support in MvvmCross remains the same as before - as in MvvmCross for WPF and Xamarin.Mac: is it possible? 如今,MvvmCross中的Mac支持状态与以前一样-与WPF和Xamarin.Mac中的MvvmCross中一样:是否可能?

Yes, a few developers do successfully use it in MonoMac/Xamarin.Mac - but the project itself builds and releases binaries from Windows where there is no official support today for MonoMac or Xamarin.Mac. 是的,一些开发人员确实在MonoMac / Xamarin.Mac中成功使用了它-但是该项目本身会从Windows生成并发布二进制文件,而Windows如今对MonoMac或Xamarin.Mac尚无官方支持。

For nuget, one developer has produced their own nuget packages for mac, but these are hard to use and maintain - as the Mac targets currently appear the same to nuget as the other x86 targets (WPF, console) - for some more on this see https://github.com/MvvmCross/MvvmCross/issues/502 (plus search other discussions there for "Mac" comments). 对于nuget,一个开发人员已经为Mac生产了自己的nuget程序包,但是这些程序难以使用和维护-因为Mac目标当前在nuget上与其他x86目标(WPF,控制台)看起来是相同的-有关此内容的更多信息,请参见https://github.com/MvvmCross/MvvmCross/issues/502 (另在此处搜索“ Mac”注释的其他讨论)。

There is no official "Hello World" sample from MvvmCross for Mac - Mac is not as "first class" as the other platforms. 没有MvvmCross for Mac的官方“ Hello World”示例-Mac不像其他平台那样“一流”。 There are some experiments included in https://github.com/MvvmCross/MvvmCross/tree/3.5/Samples/FirstDemo.Mac https://github.com/MvvmCross/MvvmCross/tree/3.5/Samples/FirstDemo.Mac中包含一些实验

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM