I have installed the scanner for msbuild and i successfully start my project using
SonarScanner.MSBuild.exe begin /k:"***" /d:sonar.host.url="***" /d:sonar.login="****"
and then go with msbuid.exe “my filename.csproj” /t:Rebuild and it successfully completes
The error shows up when i try to end the scanner using
SonarScanner.MSBuild.exe end /d:sonar.login="****"
error shows up :SonarScanner for MSBuild 5.13
Using the .NET Framework version of the Scanner for MSBuild
02:42:40.589 The SonarScanner for MSBuild integration failed: SonarQube was unable to collect the required information about your projects.
- The project has not been built - the project must be built in between the begin and end steps
- An unsupported version of MSBuild has been used to build the project. Currently MSBuild 14.0.25420.1 and higher are supported.
- The begin, build and end steps have not all been launched from the same folder
- None of the analyzed projects have a valid ProjectGuid and you have not used a solution (.sln)
02:42:40.619 Generation of the sonar-properties file failed. Unable to complete the analysis.
02:42:40.638 Post-processing failed. Exit code: 1
All the scanning is started from same folders and trying locally from build machine .Can anyone help on same…