finds.dev← search

// the find

robert-tessnow-ramirez-sonar/windows-msbuild-dotnet-cpp-azure-sc

C · updated Mar 2026

A SonarSource official example repo showing how to run SonarCloud static analysis on a mixed C++/C# solution using MSBuild and Azure DevOps pipelines. It exists purely as a reference template, not a library or tool you'd actually use. The 'flawed code' in the repo is intentional — it's there so Sonar has bugs to find.

The azure-pipelines.yml shows the exact wrapper invocation order needed to get both the build-wrapper (for C++ compilation database) and SonarScanner for .NET working together in one pipeline, which is genuinely fiddly to get right. It covers the specific Windows/MSBuild combination that most Sonar C++ docs gloss over. The Directory.Build.props approach keeps the project structure clean.

Zero stars, zero forks, and the code is intentionally broken — this is not something you'd adopt, it's a reference you'd read once. The C# and C++ source files are trivially small toy examples that don't reflect any real mixed-language project complexity. No CMake alternative shown, so if you're not on MSBuild you get nothing. The repo is one of dozens of near-identical forks in the sonarsource-cfamily-examples org, which means maintenance is scattered and any given repo may lag behind the others.

View on GitHub →

// want more like this?

We dig through GitHub every week and send a few repos picked for what you actually care about — each with an honest take like this one.

Get finds in your inbox → Search again →