Reputation: 99
I am new to .Net and new to SonarScanner with MS Build. I am looking forward for your help on resolving the error I get when I build the project after sonarscanner-msbuild begin process .
C:\Windows\system32\config\systemprofile\AppData\Local\Microsoft\MSBuild\14.0\Microsoft.Common.targets\ImportBefore\SonarQube.Integration.ImportBefore.targets(62,5): error : The build is configured to run SonarQube analysis but the SonarQube analysis targets could not be located. Project: XYZ.csproj [E:\jenkins\workspace\XYZ\XYZ.csproj]
Upvotes: 1
Views: 1722
Reputation: 577
SonarScanner.MsBuild begin
before executing MsBuild
MsBuild
with /v:diagnostic
switch to get detailed troubleshooting log. In the log lookup SonarQubeTargetsPath
and SonarQubeTargetFilePath
values.Upvotes: 3