We are porting a rather big mostly .Net based application to macOS, consisting of multiple managed and native libraries and applications. We want to bundle the Mono.framework (4.8) in our application bundle.
But sadly the Mono.framework is rather large (about 1GB), and we do not need most of its features. We only need the runtime, and some very basic class libraries. No GTK or other GUI libraries, no debug symbols and no build tools (xbuild, mcs, etc.).
What is the minimum we need when bundling, and how do we identify what can be left out?
This question at Reduce Mono runtime size seems to indicate that we should build mono from source to get it down to around 180MB. Is this the preferred way and minimum size?