I need to setup Sonarqube for a C# solution which contains two “independent” projects. I can’t split up the solution because of “political reasons”. I found out that I can create two Sonarqube projects and use sonar.sources and sonar.inclusion to associate the correct C# projects to them.
How can I “fill” the two projects with data in a single build run? I’m using sonarscanner for dotnet like this:
dotnet sonarscanner begin /k:"[Project]"
but it only accepts a single project. Can I start sonarscanner twice before I run the build? Any other tricks?