PublishAotCompressed 1.0.0

There is a newer version of this package available.
See the version list below for details.
dotnet add package PublishAotCompressed --version 1.0.0
NuGet\Install-Package PublishAotCompressed -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="PublishAotCompressed" Version="1.0.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add PublishAotCompressed --version 1.0.0
#r "nuget: PublishAotCompressed, 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.
// Install PublishAotCompressed as a Cake Addin
#addin nuget:?package=PublishAotCompressed&version=1.0.0

// Install PublishAotCompressed as a Cake Tool
#tool nuget:?package=PublishAotCompressed&version=1.0.0

PublishAotCompressed

This is a NuGet package with an MSBuild target to compress results of PublishAot with UPX. Simply add a reference to this package and publish with PublishAot as usual. The result of AOT compilation will be compressed. UPX typically achieves 60% or more size savings.

UPX will in-memory decompress the program at launch. This is typically not observable.

A Hello World style program with <UseSystemResourceKeys>true</UseSystemResourceKeys> and <InvariantGlobalization>true</InvariantGlobalization> (two documented size savings options that pretty much everyone should enable) compressed with UPX is around 830 kB in size, fully self-contained. (On Linux, don't forget to also set <StripSymbols>true</StripSymbols>, the documented switch to place debugging symbols into a separate file.)

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 (3)

Showing the top 3 popular GitHub repositories that depend on PublishAotCompressed:

Repository Stars
nilaoda/N_m3u8DL-RE
Cross-Platform, modern and powerful stream downloader for MPD/M3U8/ISM. English/简体中文/繁體中文.
Sergio0694/ComputeSharp
A .NET library to run C# code in parallel on the GPU through DX12, D2D1, and dynamically generated HLSL compute and pixel shaders, with the goal of making GPU computing easy to use for all .NET developers! 🚀
DataDog/dd-trace-dotnet
.NET Client Library for Datadog APM
Version Downloads Last updated
1.0.3 44,516 1/6/2024
1.0.2 62,303 9/15/2023
1.0.1 663 6/15/2023
1.0.0 2,550 11/25/2022
0.0.4 1,895 10/4/2022
0.0.3 929 9/18/2022
0.0.2 453 9/17/2022
0.0.1 502 9/17/2022