面向 ARM64 的 .NET Core 3.0 发布 [英] .NET Core 3.0 Publish for ARM64
问题描述
有谁知道如何为 ARM64 发布 .NET Core 3.0 应用程序?我只能选择linux-arm"而不能选择linux-arm64".将 linux-arm 与 x64 结合设置也不起作用.它说设置不兼容.
Does anyone know how to publish a .NET Core 3.0 application for ARM64? I can only select "linux-arm" but no "linux-arm64". Setting linux-arm in combination with x64 also doesnt work. It says the settings are not compatible.
正如此处所述,它应该已经得到支持:https://github.com/dotnet/core/blob/master/release-notes/3.0/3.0-supported-os.md
As stated here it should already be supported: https://github.com/dotnet/core/blob/master/release-notes/3.0/3.0-supported-os.md
推荐答案
链接的文章指向支持的操作系统,而不是运行时标识符列表.可以在 .NET 中找到 RID 的解释和常见的列表核心 RID 目录.完整列表可以在 CoreFX 存储库中找到,位于 runtime.json.linux-arm64
包括在内,但这只是基础 操作系统.有很多特定的标识符,例如 "debian-arm64"
、"debian.10-arm64"
、"rhel-arm64"
和 <代码>ubuntu-arm64".您必须使用与您的发行版相对应的 RID.
The linked article points to the supported OSs, not the list of runtime identifiers. An explanation of an RID and a list of common ones can be found in .NET Core RID Catalog. The full list can be found at the CoreFX repo, in runtime.json. linux-arm64
is included but that's only the base OS. There are a lot of specific identifiers like "debian-arm64"
, "debian.10-arm64"
, "rhel-arm64"
and "ubuntu-arm64"
. You'll have to use the RID that corresponds to your distribution.
正如 RID 目录所述,运行时标识符由操作系统、操作系统版本、体系结构和可选的额外限定符组成.
As the RID catalog explains, a runtime identifier consists of the OS, OS version, architecture and optional extra qualifiers.
[操作系统].[版本]-[架构]-[附加限定符]
[os].[version]-[architecture]-[additional qualifiers]
ubuntu-arm64
是 ARM64 的通用 Ubuntu 版本,而 ubuntu.19.04-arm64
专门针对 Ubuntu 19.04.
ubuntu-arm64
is the generic Ubuntu version for ARM64 while ubuntu.19.04-arm64
targets Ubuntu 19.04 specifically.
没有针对 Raspbian 的特定版本.如果您想以一般的 Raspberry 为目标,则必须使用 linux-arm
.如果您想利用 4GB RAM 模型,假设您已经使用 64 位操作系统,您可以针对 linux-arm64
.
There's no specific version for Raspbian. If you want to target Raspberry in general, you'll have to use linux-arm
. If you want to take advantage of the 4GB RAM model, assuming you already use a 64bit OS you may be able to target linux-arm64
.
这篇关于面向 ARM64 的 .NET Core 3.0 发布的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!