After execute MSbuild task (under TFS2017) with the following parameters:
/m /property:StyleCopTreatErrorsAsWarnings=false /property:StyleCopEnabled=true /p:SkipInvalidConfigurations=true
the compilation succeed. The warning is shown under Summary / build but my expectation is that the compilation would have to finish with error.
The warning is:
Warning : CA1822 : Microsoft.Performance : The 'this' parameter (or 'Me' in Visual Basic) of ...
Are the MsBuild parameters set incorrectly?