Sonar scanner not scanning C# 3 Tier project

scanner
msbuild
csharp
sonarqube
(Akhil Dev) #1

Hi Team,
We are using Sonarqube version :7.6,sscanner:3.3.0, MSBuild 4.6.0.1930.
Our C# project source code is in TortoiseSVN and using Visual Studio 2015,MSSQL Server 2016 as backend.
We were able to get sonarQube and sonarscanner up and running but sonarscanner is scanning only files present in Business layer and Data Layer and it is skipping the files present in Presentation Layer.
Please find the attached screenshots for the error that we are receiving .UTIS REPORT FROM CMD.txt (44.9 KB)>> this is the content in the command prompt while msbuild begin ,rebuild and end.

(Duncan Pocklington) #2

Hi there.

Looking at the logs you supplied, one of your projects is not building:

“C:\UTISLLC\UTISLLC.sln” (Rebuild target) (1) ->
“C:\UTISLLC\UTISLLC\UTISLLC.csproj” (Rebuild target) (2) ->
C:\UTISLLC\UTISLLC\UTISLLC.csproj(2251,3): error MSB4019: The imported project “C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v11.0\WebApplications\Microsoft
.WebApplication.targets” was not found. Confirm that the path in the declaration is correct, and that the file exists on disk.

Is that the UI project? If so, that build failure would be enough to stop the files being analysed.