# Does dotnet sonarscanner support multiple solutions?

**URL:** <https://community.sonarsource.com/t/does-dotnet-sonarscanner-support-multiple-solutions/90865>\
**Category:** SonarQube Server / Community Build\
**Created:** [May 13, 2023, 1:15am UTC](https://community.sonarsource.com/t/does-dotnet-sonarscanner-support-multiple-solutions/90865 "2023-05-13T01:15:17Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![ddolfie](https://avatars.discourse-cdn.com/v4/letter/d/57b2e6/32.png) [@ddolfie](https://community.sonarsource.com/u/ddolfie)\
**Post date:** [May 13, 2023, 1:15am UTC](https://community.sonarsource.com/t/does-dotnet-sonarscanner-support-multiple-solutions/90865/1 "2023-05-13T01:15:17Z")

</div>

Hello everyone,

Does “dotnet sonarscanner” support multiple solutions?

For example,

```auto
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.

---

<div class="post-metadata">

**Author:** ![ganncamp](https://dub1.discourse-cdn.com/sonarsource/user_avatar/community.sonarsource.com/ganncamp/32/1261_2.png) [@ganncamp](https://community.sonarsource.com/u/ganncamp)\
**Post date:** [May 15, 2023, 5:56pm UTC](https://community.sonarsource.com/t/does-dotnet-sonarscanner-support-multiple-solutions/90865/2 "2023-05-15T17:56:48Z")

</div>

Hi,

Welcome to the community!

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

&nbsp;  
HTH,  
Ann

---

<div class="post-metadata">

**Author:** ![ddolfie](https://avatars.discourse-cdn.com/v4/letter/d/57b2e6/32.png) [@ddolfie](https://community.sonarsource.com/u/ddolfie)\
**Post date:** [May 15, 2023, 6:44pm UTC](https://community.sonarsource.com/t/does-dotnet-sonarscanner-support-multiple-solutions/90865/3 "2023-05-15T18:44:32Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![ganncamp](https://dub1.discourse-cdn.com/sonarsource/user_avatar/community.sonarsource.com/ganncamp/32/1261_2.png) [@ganncamp](https://community.sonarsource.com/u/ganncamp)\
**Post date:** [May 15, 2023, 6:46pm UTC](https://community.sonarsource.com/t/does-dotnet-sonarscanner-support-multiple-solutions/90865/4 "2023-05-15T18:46:37Z")

</div>

Hi,

> [@ddolfie](#):
>
> I suppose each begin/end would be its own SonarQube project.

Yes

> [@ddolfie](#):
>
> Maybe I can combine them using Applications (we have Enterprise)

Yes!

> [@ddolfie](#):
>
> but not sure if they can be combined to have everything in the same MR.

So the opposite of monorepos? 😆

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

&nbsp;  
Ann

---

<div class="post-metadata">

**Author:** ![system](https://dub1.discourse-cdn.com/sonarsource/user_avatar/community.sonarsource.com/system/32/31083_2.png) [@system](https://community.sonarsource.com/u/system)\
**Post date:** [May 22, 2023, 6:47pm UTC](https://community.sonarsource.com/t/does-dotnet-sonarscanner-support-multiple-solutions/90865/5 "2023-05-22T18:47:34Z")

</div>

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