I have a very small project (WinForms, it contains 2 folders and 10 classes, simple windows for input) and I want to publish it to folder as single .exe file. When it is done the size of the file is 140MB. When I add "Trim unused assemblies" mark - 90 MB.
How can I add reduce the size this .exe file? I faced something like this before, and the size of the file was about 1 MB.
My publish config:
- Configuration: Debug | Any CPU
- Target framework: net5.0 windows
- Deployment mode: self-contained (produce single file)
- Target runtime: win x-86