C
C#2mo ago
elnexreal

Help with building

Is there any way to configure the publish thingy to bundle all the dlls into a single standalone .exe?
18 Replies
elnexreal
elnexreal2mo ago
I had a project in .net 4.7.2 that when i published it, it would just bundle all the dlls into a single .exe file Sorry if someone doesn't understand me, im kinda asleep
SpReeD
SpReeD2mo ago
Select the option "Publish as single file"
elnexreal
elnexreal2mo ago
Sorry but, where's that option? The only thing i can find is publish to folder
elnexreal
elnexreal2mo ago
And all this config
No description
elnexreal
elnexreal2mo ago
Oh right in the dropdown menu :picard_facepalm: Aight it worked, thx <3 Is there any way to decrease the .exe size?
elnexreal
elnexreal2mo ago
GitHub
Release v1.03 · elnexreal/GD-SLEditor
Changelog Removed github button Removed initprogram() function Updated comments in code Extras Changed version scheme
elnexreal
elnexreal2mo ago
I have this old project and the exe is not that big, i don't really remember what i did there
leowest
leowest2mo ago
No description
leowest
leowest2mo ago
and trimming but it depends on what kind of project it is in some scenarios trimming might be more hassle then worth it
elnexreal
elnexreal2mo ago
Not that big
leowest
leowest2mo ago
its not the size but what it uses
elnexreal
elnexreal2mo ago
What do you mean by that?
leowest
leowest2mo ago
i.e.: WPF is not compatible with trimming as an example the alternative is framework-dependant which means the OS would have to have .net runtime installed and the other option would be to just stay on .net framework 4.8 because all windows 10+ have it
elnexreal
elnexreal2mo ago
Is there any possibility that net 4.7.2 bundled into the exe is less bigger than net 8.0? Oookay so that's the reason
leowest
leowest2mo ago
yeah
elnexreal
elnexreal2mo ago
Thank you so much <3
leowest
leowest2mo ago
that means u can't upgrade to .net core+ just to stand out the difference its not .net 4.7.2 its .net framework 4.7.2 its the legacy version which is windows only
MODiX
MODiX2mo ago
If you have no further questions, please use /close to mark the forum thread as answered