适用于ARM64的.NET Core 3.0发布 [英] .NET Core 3.0 Publish for ARM64

查看:844
本文介绍了适用于ARM64的.NET Core 3.0发布的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有人知道如何为ARM64发布.NET Core 3.0应用程序吗?
我只能选择 linux-arm,而不能选择 linux-arm64。
与x64结合设置linux-arm也不起作用。它说设置不兼容。

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

推荐答案

链接的文章指向支持的操作系统,而不是运行时标识符列表。可以在中找到有关RID的说明和常见列表。 NET Core RID目录完整列表可在CoreFX存储库中的 runtime.json 。包含 linux-arm64 ,但这只是 base 操作系统。有很多特定的标识符,例如 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目录所解释的,运行时标识符由OS,OS版本,体系结构和可选的附加组件组成。

As the RID catalog explains, a runtime identifier consists of the OS, OS version, architecture and optional extra qualifiers.


[os]。[version]-[architecture]-[其他限定符]

[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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆