Sonarscanner for .Net scans

We have a C# project that builds inside a docker container,
If we wanted to create a sonarscanner for .Net scan of this project, does the sonarscan need to be started and ended
inside the same docker build container, or are other options available for where the scanner can be placed.
We use use Teamcity for building the projects and each project has a docker build for dotnet publish/build.
Is there a way to run the dotnet scanner without having to edit all of our docker files because we want this to be enforced in Teamcity rather than at development time

Hi,

The start and end commands need to run in the same space as the build because the analysis is actually running during the build.

 
HTH,
Ann

So if the build is performed inside a container, the start and the end must also be run in the same container.
This is what I thought
Thanks

1 Like