[Bug: 21.4.19] Patch to compile mode for MS .Net compiler