Electron.NET
Electron.NET copied to clipboard
Add PublishTrimmed option
Would be nice to add this option (as well as PupblishSingleFile was) to reduce the exe file size in windows
You can add the option to the project configuration file.
Example of file.csproj
<Project Sdk="Microsoft.NET.Sdk.Web">
<PropertyGroup>
<TargetFramework>net5.0</TargetFramework>
<PublishTrimmed>true</PublishTrimmed>
<TrimMode>CopyUsed</TrimMode>
</PropertyGroup>
</Project>
After that the command dotnet electronize build /target win produce a trimmed assembly.
NOTE: I haven't tested the other target platforms.