Hi Amaury,
We're using MSBuild 14. I changed it to MSBuild 15 but I got the same message.
I raised sonar scanner and MSBuild verbosity and in the log I can see:
Removing the existing directory: c:\Programe\jenkins-data\workspace\some_project\.sonarqube
Creating directory: c:\Programe\jenkins-data\workspace\some_project\.sonarqube
18:58:21.284 18:58:21.277 Loading analysis properties from C:\Programe\sonar-scanner-msbuild-4.0.2.892\SonarQube.Analysis.xml
18:58:21.284 18:58:21.284 sonar.verbose=true was specified - setting the log verbosity to 'Debug'
18:58:21.285 Updating build integration targets...
18:58:21.288 Installed SonarQube.Integration.ImportBefore.targets to C:\Users\CIUser\AppData\Local\Microsoft\MSBuild\15.0\Microsoft.Common.targets\ImportBefore
18:58:21.289 Installed SonarQube.Integration.ImportBefore.targets to C:\Users\CIUser\AppData\Local\Microsoft\MSBuild\14.0\Microsoft.Common.targets\ImportBefore
18:58:21.292 Installed SonarQube.Integration.targets to c:\Programe\jenkins-data\workspace\some_project\.sonarqube\bin\targets
18:58:21.293 Creating config and output folders...
18:58:21.293 Creating directory: c:\Programe\jenkins-data\workspace\some_project\.sonarqube\conf
18:58:21.294 Creating directory: c:\Programe\jenkins-data\workspace\some_project\.sonarqube\out
18:58:21.3 Fetching analysis configuration settings...
18:58:21.302 Downloading from
http://localhost:9000/api/server/version...
In MSBuild logs I noticed lots of :
[exec] 18:58:26.066 0>Property reassignment: $(SonarQubeBuildDirectory)="D:\dev\some_project\Source\Generic\src" (previous value: "") at C:\Users\CIUser\AppData\Local\Microsoft\MSBuild\14.0\Microsoft.Common.targets\ImportBefore\SonarQube.Integration.ImportBefore.targets (12,5)
and I also found lots of this:
[exec] Target "SonarQubeImportBeforeInfo" skipped, due to false condition; ( $(SonarQubeTempPath) != '' AND $(BuildingInsideVisualStudio) != 'true' ) was evaluated as ( != '' AND != 'true' ).
Thanks!