SonarQube MSBuild analysis does not work with

Hello Duncan,
I am facing the same issue faced by Sandeep Kumar. Earlier all my projects were built using MSBuild command line tools and the sonarqube analysis would work perfectly fine.

But now we have started to use (located at C:/Program Files (x86)/Microsoft Visual Studio/2019/Professional/Common7/IDE/ It gives the error " SonarQube MSBuild integration failed: SonarQube was unable to collect the required information about your projects." with possible causes as you have mentioned.
I am using Sonarqube Scanner version 5.3.1 for my C# projects.
Is (Commandline switch ) is not supported ?


Hi @rahulshanbhag ,

Welcome to SonarSource Community! :sonarsource:

Usages of devenv is not supported, but if you insist on using it, you need to ensure that the MSBuild /t:Rebuild flag is present somewhere and that the Roslyn analyzers are invoked somehow. Please review our documentation on SonarScanner for .NET | SonarQube Docs for more on how you should invoke the Sonar Scanner for .NET.