Hi @rlejeune,
I’m assuming you’re analyzing the project using the Scanner for MSBuild. XAML files are normally referenced in an MSBuild project using the ItemTypes Page
or ApplicationDefinition
.
The bad news is that the Scanner for MSBuild doesn’t include these ItemTypes in the list of files to be analyzed so they don’t get passed to SonarXml.
The good news is that it is easy to tell the scanner to include those item types simply by setting the MSBuild property $(SQAdditionalAnalysisFileItemTypes)
e.g.
msbuild /p:SQAdditionalAnalysisFileItemTypes="Page;ApplicationDefinition"
I’ve created issue #746 to track adding those item types to the standard list of files to be analyzed.