[Core] Improve parsing of msbuild configurations

Fixes bug #20554 - Unable to parse condition