Does dotnet sonarscanner support multiple solutions?

Hello everyone,

Does “dotnet sonarscanner” support multiple solutions?

For example,

dotnet sonarscanner begin /k:"project-key" /d:sonar.token="<token>"
dotnet build <path .sln file>
dotnet build <path .sln file>
dotnet sonarscanner end /d:sonar.token="<token>"

It seems fine with one “dotnet build”, but having more than one causes some files to not get scanned.

Hi,

Welcome to the community!

I believe you’re going to need to do a begin and end for each build, separately.

 
HTH,
Ann

1 Like

Thanks,

I suppose each begin/end would be its own SonarQube project. Maybe I can combine them using Applications (we have Enterprise), but not sure if they can be combined to have everything in the same MR.

Hi,

Yes

Yes!

So the opposite of monorepos? :laughing:

Sorry, but we haven’t planned anything for that.

 
Ann

1 Like

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.