C
C#8mo 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
elnexrealOP8mo 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
SpReeD8mo ago
Select the option "Publish as single file"
elnexreal
elnexrealOP8mo ago
Sorry but, where's that option? The only thing i can find is publish to folder
elnexreal
elnexrealOP8mo ago
And all this config
No description
elnexreal
elnexrealOP8mo ago
Oh right in the dropdown menu :picard_facepalm: Aight it worked, thx <3 Is there any way to decrease the .exe size?
elnexreal
elnexrealOP8mo ago
GitHub
Release v1.03 · elnexreal/GD-SLEditor
Changelog Removed github button Removed initprogram() function Updated comments in code Extras Changed version scheme
elnexreal
elnexrealOP8mo ago
I have this old project and the exe is not that big, i don't really remember what i did there
leowest
leowest8mo ago
No description
leowest
leowest8mo 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
elnexrealOP8mo ago
Not that big
leowest
leowest8mo ago
its not the size but what it uses
elnexreal
elnexrealOP8mo ago
What do you mean by that?
leowest
leowest8mo 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
elnexrealOP8mo 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
leowest8mo ago
yeah
elnexreal
elnexrealOP8mo ago
Thank you so much <3
leowest
leowest8mo 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
MODiX8mo ago
If you have no further questions, please use /close to mark the forum thread as answered

Did you find this page helpful?