How to run analysis for CSharp .net projects without integrating to MSbuild in Azure DevOps pipeline

Must-share information (formatted with Markdown):

  • which versions are you using (SonarQube, Scanner, Plugin, and any relevant extension)
    SonarQube 8.8 version
    no addition plugins installed Sonarqube installation and configuration.

  • what are you trying to achieve
    we need to run analysis for selective folders from project repository without running MS build for the .Net project

  • what have you tried so far to achieve this

we tried using “Using Standalone Scanner” and passing selected source code paths through Additional argument in Prepare Analysis task in Azure DevOps Pipeline
Looks like the analysis is running fine, but no bugs, code smells, etc… shown in the analysis report in SonarQube server.

Hello @Lakshmi3 - welcome to the community.

The Sonar analysis for C# and VB.Net are implemented as Roslyn analyzers, which means they are executed by the compiler as part of the build step. So, it is not currently possible to analyze C#/VB.NET without building the project.

1 Like

thanks for your update.

1 Like

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