mirror of
https://github.com/ElectronNET/Electron.NET.git
synced 2026-02-04 05:34:51 +00:00
Add PublishTrimmed option #743
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @aikrana on GitHub (Dec 20, 2021).
Would be nice to add this option (as well as PupblishSingleFile was) to reduce the exe file size in windows
@m3nax commented on GitHub (Apr 7, 2022):
You can add the option to the project configuration file.
Example of
file.csprojAfter that the command
dotnet electronize build /target winproduce a trimmed assembly.NOTE: I haven't tested the other target platforms.
@FlorianRappl commented on GitHub (Nov 1, 2025):
Outdated - use
ElectronNET.CoreandElectronNET.Core.AspNet.See Wiki / What's New.