【发布时间】:2023-01-23 12:47:48
【问题描述】:
没有关于 macOS 平台的信息。 AOT是否支持,或者有什么计划?
【问题讨论】:
标签: c# .net-7.0 ahead-of-time-compile native-aot
没有关于 macOS 平台的信息。 AOT是否支持,或者有什么计划?
【问题讨论】:
标签: c# .net-7.0 ahead-of-time-compile native-aot
在撰写本文时,根据 MS 文档,唯一受支持的目标是 Windows 和 Linux - 请参阅https://learn.microsoft.com/en-us/dotnet/core/deploying/native-aot/#platformarchitecture-restrictions
这并没有回答你关于是否有计划在 MacOS 上支持它的问题——也许其他人有这个信息。
【讨论】:
目前官方docs state Native AOT 仅支持 Windows 和 Linux for .NET 7:
下表显示了面向 .NET 7 时支持的编译目标。
Platform Supported architecture Windows x64, Arm64 Linux x64, Arm64 但基于 github 存储库中的问题/讨论(例如this、this,尤其是this),未来版本的工作正在进行中,以支持 macOS 上的原生 AOT。
【讨论】:
mac平台是on the way
【讨论】: