You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Did it work in any of the earlier releases of .NET Core or .NET 5+?
No
Issue description
Hello
I realize that this is a debated problem, and i have found some issues on the topic, but no clear answer.
In .Net Framwork we could create winforms tools sub 10Mb, Now, we can not build small single file portable tools unless we set it to be self-contained, that ballons the size to 100MB.
If we want to avoid this size, we need to remove slf-contained.
However this brings another problem, if these tools are for use on Windows Servers, as many of mine are, even if the server has the correct hosting runtime the app still need to install the desktop runtime.
I don't want to install desktop runtime on every server where i need to run the tools, so it seems that there are no solution.
My question is:
Is there any way/plan to make it easyer to make smaller slef-contained apps?
PublishAot as you know is not suitable for most apps and installing desktop runtime on servers feels strange.
I'm i missing something or is this just as it seems, a unsolvable problem?
I realize that you may not be a interesting point, but since neither UI model (Winforms, MAUI, WinUI) can produce portalble small apps we are kind a stuk.
At this point, given the size of the produced portable app sizes, its seems that its better just to use Electron.
The size is the same and at least we get a decent cross platform app.
Thnak you
Steps to reproduce
Just a simple winforms app, self-contained or a platform dependent on a server without the desktop runtime.
Activity
elachlan commentedon Oct 14, 2025
Closing as Duplicate of #9911