Change MSBuild Version

Must-share information (formatted with Markdown):

  • which versions are you using (SonarQube, Scanner, Plugin, and any relevant extension)
  • what are you trying to achieve
  • what have you tried so far to achieve this

Hello all,

We are using SonarQube 7.9.2, running in a docker on Azure.
We have developed a pipeline to build .NET Core solution, prepara sonar environment, run tests and upload them.
The problem is that code is building with msbuild version 4.8 and we need 14 or superior.
Is there a way to force in YAML to use a different version?


Hi @alabruna and welcome to the community !

I think that you are mixing the version of our SonarScanner for MSBuild, which is currently in version 4.8, and the version of msbuild itself.

We have a mechanism that detects and invoke the version of MSBuild installed on your machine / docker image. You can see the version of MSBuild that is run by looking at the log of your build command, there’s a header showing the version.


Thank you very much Mickael!
We were able to solve this issue. As we are working with NET Core, we had configured to analyze projects and not the entire solution. That created a conflict.

Thanks again!