Sonar xml does not scan new template rule created

I have configured a new rule for .config file in xml language.


<?xml version="1.0" encoding="utf-8"?>



XPATH Expression:

  • SonarQube version? 7.4

I have created default xml profile and activated this rule.
I have also modified project properties for xml to use .config, .aspx etc.

While my other .net profile is default, active , with Sonarscanner MSbuild commands when the project is getting built I am hoping that it will also pick up the xml profile and scan the project for .config file
But the code smell is not reported