Sonar scanner for .net application inside docker container


I am working on implementing a solution for sonarscanner inside a docker container for .net application in azure devops.

Currently the sonarqube installed was on a sonarqube namespace in AKS cluster and our dot net application is containerised in a different namespace in same cluster. Is there any sample or working Docker file which implements this type of logic

Hey there.

SonarQube analyzes source code – and typically runs during your build pipeline. The SonarScanner for .NET just needs to be able to reach your SonarQube server, however it’s deployed.

If you’re already building your application in a .NET container, adding the scanner should be fairly trivial. Some users have published tutorials you might be able to take advantage of.