C# and typescript projects are not getting analyzed in same azure devops pipeline

Must-share information (formatted with Markdown):

  • which versions are you using (SonarQube, Scanner, Plugin, and any relevant extension) : sonarqube 10.3
  • how is SonarQube deployed: zip, Docker, Helm : zip
  • what are you trying to achieve : we are having main c# code and in that there steps to build and run angular application. so we are trying to analyze both c# and typescript in sonarqube.
  • what have you tried so far to achieve this : we have written sonarqubeprepare, sonarqubeanalyze and sonarqubepublish steps for both C# and typescript. but whichever step runs in last , only that issues are shown in the sonarqube dashboard. Please let us know how can we analyze both the language using one azure devops pipeline.

Do not share screenshots of logs – share the text itself (bonus points for being well-formatted)!

1 Like

Hi,

Welcome to the community!

Analyses are not additive. As you’ve observed, each new analysis replaces the previous one. So you’ll need to get everything in one analysis, or use a different project key for one of the languages.

Per the docs

For newer SDK-style projects used by .NET Core, .NET 5, and later, the SonarScanner for .NET will analyze all file types that are supported by the project type (for example, esproj), MSBuild, and the available language plugins unless explicitly excluded.

For older-style projects, the scanner will only analyze files that are listed in the .csproj or .vbproj project file.

The docs linked here include how to add other file types if needed.

 
HTH,
Ann