Search code examples
visual-studiomonogarbage-collectionsgen

Compiling Mono from Visual Studio with sgen support


I have a Mono binary obtained from a build with Visual Studio. The option --gc=sgen used to enable sgen garbage collector is not available:

Error: --gc=<NAME> option not supported on this platform.

How to enable this option ? Is there any define ?


Solution

  • The sgen GC will be available on windows starting from the next mono releases, 2.11/2.12 (though not necessarily in the VS build).