Install
dotnet add package PublishAotZig --version 1.0.1
| Product | Versions |
|---|---|
| .NET Standard |
README
PublishAotZig
这是一个包含 MSBuild 目标的 NuGet 包,用于辅助 PublishAot 的交叉编译。使用 ZIG 工具链在 Windows 机器上交叉编译到多个 linux RID。
本项目源于 MichalStrehovsky/PublishAotCross,做了以下额外工作:
- 补充了部分 zlib.a
- Nuget 包含了 llvm-objcopy
- Nuget 引用了 zig-toolsets,你可以使用 ZigVersion 属性指定 zig 的版本,默认是 0.16.0.2
如何使用
在 Native AOT 的项目中,添加对此 NuGet 包的引用。
在 Windows 机器上,可以额外 AOT 发布到以下 RID:
dotnet publish -r linux-x64dotnet publish -r linux-arm64dotnet publish -r linux-arm(.NET 9+)dotnet publish -r linux-musl-x64dotnet publish -r linux-musl-arm64dotnet publish -r linux-musl-arm(.NET 9+)
Changes from Previous Version
No structural changes between v1.0.0 and v1.0.1.
Adoption Assessment
Assess this package against its supported frameworks, license, maintenance signals and dependency graph before making it a project standard.
Compatibility metadata lists 1 target framework; confirm the exact target used by your application.This version is unlisted. Prefer a listed release unless you deliberately need this exact version for reproducibility.
Related Guides & Workflows
Learn how to evaluate, integrate, or audit this package in your .NET project.