We have recently updated our continuous deployment environment (ThoughtWorks Go agents) to use MSBuild 15 (C# 7, etc.).
When we run SonarQube Scanner for MSBuild 2.2, the 'begin' stage appears to run fine. Then we run MSBuild on the solution, run unit tests, code coverage, etc.
When SonarQubeScanner for MSBuild 2.2 'end' runs, we get the following error:
08:36:49.729 [exec] The SonarQube MSBuild integration failed: SonarQube was unable to collect the required information about your projects.
08:36:49.729 [exec] Possible causes:
08:36:49.729 [exec] 1. The project has not been built - the project must be built in between the begin and end steps
08:36:49.729 [exec] 2. An unsupported version of MSBuild has been used to build the project. Currently MSBuild 12.0 upwards are supported
08:36:49.729 [exec] 3. The begin, build or end steps have not all been launched from the same folder
08:36:49.729 [exec] 08:36:49.511 Post-processing failed. Exit code: 1
Our assumption is that we need to update our SonarQube Scanner for MSBuild. If that's correct, what version should we update to? It's not clear to us looking online.
We did experiment a bit with newer versions - including 4.3 - but hit a wall becaus 4.2 throws a warning if the SonarScanner.MSBuild.exe process is run from a system
Why that requirement?
NAnt doesn't have an elegant way of exec'ing a process in a different account.
David