Ok, so the Scanner for MSBuild is passing the correct configuration to the command line scanner that is being executed in the end step.
I’m not familiar with custom XPath rules so I can’t be of much more help. Some general suggestions: check that the rule is enabled in the QP, check that the expected QP is being used during the analysis, and check the console output of the end step for any warnings or errors.