Dear all,
I apply sonar scan for my project. This project is to write with .NET and apply clean architecture. When I use dotnet-sonarscanner
and add
<PropertyGroup>
<SonarQubeTestProject>false</SonarQubeTestProject>
</PropertyGroup>
in all .csproj file
Sonar report:
INFO: Found 5 MSbuild C# project: 4 MAIN project and 1 with no MAIN nor test file
Colin
(Colin)
March 14, 2024, 10:08am
2
I don’t really understand. What’s not working?
Sorry, I don’t provide enough information. Dotnet scanner still working, but it doesn’t scan the entire project. It scan 4 folder Presentation, Infrastructure, Domain, Common, Persistence and don’t scan Application folder and all files and folder in Application no line of code. Even though I added
<PropertyGroup>
<SonarQubeTestProject>false</SonarQubeTestProject>
</PropertyGroup>
in Application.csproj
Colin
(Colin)
March 14, 2024, 12:41pm
4
So it’s scanning Application as a test project, or not scanning it at all?
No, If i add <SonarQubeTestProject>false</SonarQubeTestProject>
, It’s not scanning at all. And show 1 with no MAIN nor test file. And when I don’t add
<PropertyGroup>
<SonarQubeTestProject>false</SonarQubeTestProject>
</PropertyGroup>
it’s scanning Application as a test project