SonarCloud scan .NET 5 project using command line (SonarCloud)

  • ALM used (Azure DevOps)
  • CI system used ( Azure DevOps)
  • Scanner command used when applicable (Prepare, analysis)
  • Languages of the repository (c#)
  • Only if the SonarCloud project is public, the URL
    • And if you need help with pull request decoration, then the URL to the PR too
  • Error observed (The framework ‘Microsoft.NETCore.App’, version ‘2.0.0’ was not found.)
    Could you please provide a detailled procedure how to scan a .NET 5 project using command line in Azure DevOps ?

Hi @teleferix, welcome to the community.

You have some documentation here : https://sonarcloud.io/documentation/advanced-setup/ci-based-analysis/sonarscanner-for-dotnet/

Scanning .NET 5 doesn’t change from the other. Please note however that we currently have a bug preventing ASPNET MVC (.NET 5) project from being correctly scanned right now, should be fixed soon.

HTH,
Mickaël

Thank you Mickael for the info.
I am going to try it and let you know if I have any problem!

1 Like