gpt4 book ai didi

macos - 将 Xamarin.Forms macOS 项目添加到电脑上的解决方案

转载 作者:行者123 更新时间:2023-12-01 13:17:14 24 4
gpt4 key购买 nike

有什么方法可以将 Xamarin.Forms macOS 项目添加到 PC 上 Visual Studio 的解决方案中?我已经有了针对 iOS 等项目的解决方案。我可以将 macOS 添加到解决方案中吗?

我找到了答案 here好像说那是不可能的。但我认为答案的推理是错误的。当然,我们需要 Mac 来构建应用程序,但 iOS 也是如此,可以通过将它连接到 PC 上来使用它麦克。

(顺便说一句,有人知道 macOS 是否已准备好投入生产吗?)

最佳答案

微软官方documentation给你答案。不幸的是,不可能像处理 iOS 项目那样完全处理 Visual Studio:

Xamarin.Mac projects (macOS desktop apps) can be opened in Visual Studio and compiled to check for errors, but Mac applications cannot currently be built for distribution in Visual Studio.

另外,release notes Xamarin for Visual Studio 4.2 声明如下:

Xamarin for Visual Studio has gained minimum support for Xamarin.Mac. This release enables Visual Studio to load and recognize Xamarin.Mac projects as supported. However, this minimum support allows only to build Xamarin.Mac projects without using the native Mac tool chain. The build process is performed locally on Windows, generating IL assemblies that cannot be used for running or debugging apps, and it doesn't create application bundles.

我们目前的版本是 4.11,自 4.2 以来没有任何关于对 macOS 项目的扩展支持的消息。现在,您必须获得最低限度的支持。

关于macos - 将 Xamarin.Forms macOS 项目添加到电脑上的解决方案,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/53657641/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com