Which "dotnet build" configuration should I use for SonarQube Cloud: Debug or Release?

I have a simple question that I couldn’t answer from reading docs and existing issues here.

When setting up the SonarQube Cloud analysis in my Azure DevOps yaml pipeline, how should I build my .NET core solution?

  1. dotnet build --configuration Debug (or just dotnet build, which is the same)
  2. dotnet build --configuration Release

Bigger context: I have some existing pipelines that use the Release configuration. I could integrate SonarQube Cloud there. But in the example pipeline it’s using just dotnet build, which will use the Debug configuration implicitly (see Adding analysis to Azure pipeline for .NET project | SonarQube Cloud Documentation).

Hey there.

It doesn’t matter. Use whichever one you like. :slight_smile:

1 Like

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