exe로 빌드하면 기존에 쓰던 2~3mb 간단한 툴이 100MB단위로 덩치가 불어서, 배포하기도 애매했는데...
나만 그런 것이 "아니었다"
Net6.0 들어오면서 WinUI3이라고 도입되고 이걸 쓰면 덩치가 커지는 게 맞았음.
나처럼 초보는 이런 것조차도 문제?가 되는데,,, 뭐하나 따라가기가 어렵다. c#.....
https://github.com/microsoft/microsoft-ui-xaml/discussions/7683#discussioncomment-3570317
What is the size of a Hello World WinUI 3 program (packed with all dependencies)? · microsoft/microsoft-ui-xaml · Discussion #
Assuming I am installing the Hello World WinUI 3 program on a freshly installed Windows 10 PC, what would be the size of the installer? This answer will help me to decide whether to go ahead with W...
github.com
-발췌-
Well, I didn't want to provide information for this because of the type of question it is.
But since there has been an answer, I really want to provide complete information.
First, let's list the components that could be part of an installer.
C++
Visual C++ redistributable.
x86 - 13MiB
x64 - 24MiB
arm64 - 11MiB
Windows App SDK redistributables
Executable redistributable 56.8MiB for each architecture. (But this installs all packages possible for a system.)
.misx packages
x86 - 17.8MiB
x64 - 20.3MiB
arm64 - 18.3MiB
The thing that you learn about these is that you only have to install what you need. You can also not install packages like DDLM, Main and Singleton, but they only save you a few hundred KiB.
So, what are the size of the dependencies streamlining as much as possible?
C++
x86 - 13 + 17.8 = 30.8MiB
x64 - 24 + 20.3 = 44.3MiB
arm64 - 11 + 18.3 = 29.3MiB
If you want a complete redistributable install.
x86 - 13 + 17.8 = 30.8MiB
x64 - 23 + 13 + 20.3 + 17.6 = 73.9MiB
arm64 - 11 + 13 + 18.3 + 17.6 = 59.9MiB
(Add on sizes as needed for complete redistributables if you want.)
This is also not using any tricks for C++ like the hybrid CRT. Oh, and the x64 C++ redistributable being extra bloated is there for a work around on arm64 devices, it contains the arm64 version of the redistributable too.
To show that this is actually true.