PublishAotZig 1.0.0

dotnet add package PublishAotZig --version 1.0.0
                    
NuGet\Install-Package PublishAotZig -Version 1.0.0
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="PublishAotZig" Version="1.0.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="PublishAotZig" Version="1.0.0" />
                    
Directory.Packages.props
<PackageReference Include="PublishAotZig" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add PublishAotZig --version 1.0.0
                    
#r "nuget: PublishAotZig, 1.0.0"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package PublishAotZig@1.0.0
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=PublishAotZig&version=1.0.0
                    
Install as a Cake Addin
#tool nuget:?package=PublishAotZig&version=1.0.0
                    
Install as a Cake Tool

PublishAotZig

这是一个包含 MSBuild 目标的 NuGet 包,用于辅助 PublishAot 的交叉编译。使用 ZIG 工具链在 Windows 机器上交叉编译到多个 linux RID。

本项目源于 MichalStrehovsky/PublishAotCross,做了以下额外工作:

  • 补齐部分 zlib.a
  • Nuget 包含了 zig v0.16.0
  • Nuget 包含了 llvm-objcopy

如何使用

  1. 在 Native AOT 的项目中,添加对此 NuGet 包的引用。

  2. 在 Windows 机器上,可以额外 AOT 发布到以下 RID:

  • dotnet publish -r linux-x64
  • dotnet publish -r linux-arm64
  • dotnet publish -r linux-arm (.NET 9+)
  • dotnet publish -r linux-musl-x64
  • dotnet publish -r linux-musl-arm64
  • dotnet publish -r linux-musl-arm (.NET 9+)
There are no supported framework assets in this package.

Learn more about Target Frameworks and .NET Standard.

  • .NETStandard 2.0

    • No dependencies.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
1.0.0 249 6/7/2026
1.0.0-beta1 235 6/5/2026