Compiling Mono from Visual Studio with sgen suppor

2019-06-10 01:59发布

问题:

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 ?

回答1:

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).