Skip to content

Application size #13945

Closed as duplicate
Closed as duplicate

Description

@maxsnts

.NET version

Version 8, 9, 10.

Did it work in .NET Framework?

Yes

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

  1. added
    untriaged
    on Oct 8, 2025
  2. elachlan commented on Oct 14, 2025

    @elachlan
    Contributor

    Closing as Duplicate of #9911

  3. removed
    untriaged
    on Oct 14, 2025
  4. locked and limited conversation to collaborators on Nov 14, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions