SonarScanner for MSBuild 5.1 does not clean targets

Hi @linkessgit

Sorry for that.

As a workaround, and as explained in this other topic You can either :

  • Delete the .sonarqube folder created by the analysis after it
  • Or, in the builds you don’t want analysis to be run on, pass the /p:SonarQubeTargetsImported=true MSBuild property

HTH,
Mickaël