【问题标题】:.NET6 not compatible with Visual Studio for Mac M1, what can I use for xamarin?.NET6 与 Visual Studio for Mac M1 不兼容,我可以为 xamarin 使用什么?
【发布时间】:2021-12-31 23:00:19
【问题描述】:

我正在尝试学习如何使用 xamarin 表单制作应用程序。我使用的是 M1 Macbook pro,当我打开 Visual Studio 时,它说我必须卸载最新版本的 .NET(我有 .NET6),我读到 .NET 3.1、5 和 6 不兼容Mac 上的视觉工作室。我是 Xamarin 的新手并使用 Visual Studio,那么如何在没有最新版本的情况下制作此应用程序?我必须使用 .NET2 吗?它仍然支持跨平台吗?我想用xamarin,请问有解决办法吗?

【问题讨论】:

  • 谁说.net 6和M1系列不和谐?你不能在 M1 上使用之前的 .net 6,至少现在是这样。
  • 我可能误会了。但我认为视觉工作室说的,但谢谢

标签: c# macos visual-studio xamarin apple-m1


【解决方案1】:

安装 Visual Studio 2022 for Mac 预览版

安装完成后,确保安装 .NET6 工作负载:

sudo dotnet workload install android
sudo dotnet workload install ios

应该差不多吧。

您也可以使用 maui-check 工具作为替代,只要确保您运行的是 .NET6:

dotnet tool install -g Redth.Net.Maui.Check
maui-check

【讨论】:

    猜你喜欢
    • 2022-10-06
    • 1970-01-01
    • 2017-10-11
    • 2018-02-03
    • 2010-10-30
    • 1970-01-01
    • 2022-06-16
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多