May be this one:
Code: Select all
SetMacroCompiler(typeof(XSharp.MacroCompiler))
Reference: https://www.xsharp.eu/help/xsharp_macrocompiler.html
However, when building the app, the X# compiler complains that it cannot find MacroCompiler.
Anyway, as I mentioned the the app is working fine after I added a reference to C:Program Files (x86)XSharpRedistXSharp.MacroCompiler.dll,