如何为 Mac 的现有 Visual Studio 安装安装缺少的 Xamarin SDK?

How to install a missing Xamarin SDK for an existing installation of Visual Studio for Mac?

我想使用 Xamarin 开发 Mac 应用程序。但是,当我打开新建项目向导时,找不到 Mac 模板。

我看到了 "Missing Project Templates for Mac Apps" on the Xamarin forum,但我无法在网上找到更多关于这个主题的信息,尽管那个帖子中的答案 确实 明确了我没有SDK,但(谢天谢地)我的 Xcode 路径有效。

如何为 Mac 的现有 Visual Studio 安装安装 Xamarin.Mac(或任何其他 Xamarin SDK)?

在网上搜索了一番之后,我在 Visual Studio 文档中找到了 Install Visual Studio 2017 for Mac,这终于解决了所有问题:

Note

If you chose not to install a platform or tool during the original installation [...] you must run the installer again if you wish to add the components later.

(安装程序本身大约有 30 MB,所以,还不错。)