git-credential-manager icon indicating copy to clipboard operation
git-credential-manager copied to clipboard

Publish GCM-Core as Trimmed self-contained executable on Linux

Open kyle-rader opened this issue 5 years ago • 3 comments

Enable publishing as Trimmed on Linux

This should reduce the binary size quite substantially but will require some thorough testing.

kyle-rader avatar Sep 25 '20 20:09 kyle-rader

This would be beneficial. I understand that .NET 6 will have even better trimming, so perhaps when we take that upgrade, we can address this.

vtbassmatt avatar Oct 07 '21 13:10 vtbassmatt

Don't want motivation because it is temporary. Be crazy about inspiration positive things

HumbleBee-code avatar Jul 20 '22 06:07 HumbleBee-code

To enable trimming we would need to:

  1. Migrate from Newtonsoft.Json to Sytem.Text.Json in Source Generator Mode.
  2. Migrate to .NET 7 where trimming is much improved.
  3. Update MSAL and System.Commandline and Avalonia to the latest (preview) versions that support trimming.
  4. Thorough testing.

ldennington avatar Feb 13 '23 22:02 ldennington