I’m trying to distribute a simple 2D game using the official package docs
Using dotnet publish
gives me a package I can distribute onto all the platforms and run the game successfully, however it generates far too many .DLLs such as System.Private.CoreLib.dll
and System.Private.Xml.dll
which are both 8MB and bloat the game’s size (100MB+)
Is there an easy way for me to unbloat the release and remove any unnecessary DLLs?
One approach would be for me to go through the .deps.json
file and manually remove the DLLs referenced one by one until the game executable stops working but that doesn’t sound like a feasible approach
When I run my game in Release mode the only .DLLs that get generated is the game’s dll and MonoGame.Framework.dll
(i.e. the project is very basic and bare)
How does everyone else distribute/publish their games to Windows/Mac/Linux? (apart from using MonoKickstart)