When my application doesn't have any icon resources, all other resources and code produce a 121kb exe file. Then, I manually add the application icon resource to the "Resources.resx" file under the "Icons" category. After that, I compile the application again and since my icon has 66kb, the exe becomes 187kb. Then I open my application project settings and set the application icon by selecting it from the dropdown. After compiling the application again, the exe is now 253kb (187 + 66).
How is that possible? I'm using the same resource, why does the exe size increases like this?
i had to pay 20. Only because my PS4 wouldn't transfer it to PS5. Then it would get to 24% when using the disc and fail. So, I bought the online version only.
Microsoft Edge comes pre-installed with Windows 11 and it's a great browser, so why not use it? Not everyone is trying to run away from Google, sometimes people just want convenience and less friction.
Question
ProclaimDragon
Hi,
When my application doesn't have any icon resources, all other resources and code produce a 121kb exe file. Then, I manually add the application icon resource to the "Resources.resx" file under the "Icons" category. After that, I compile the application again and since my icon has 66kb, the exe becomes 187kb. Then I open my application project settings and set the application icon by selecting it from the dropdown. After compiling the application again, the exe is now 253kb (187 + 66).
How is that possible? I'm using the same resource, why does the exe size increases like this?
Anyway to workaround the problem?
Link to comment
https://www.neowin.net/forum/topic/697316-c-icon-resource-is-duplicate-in-the-built-executable/Share on other sites
17 answers to this question
Recommended Posts