문제 설명
ProjectInfo.xml 파일을 찾을 수 없습니다. 소나 속성 파일 생성 실패 (No ProjectInfo.xml files were found. Generation of the sonar‑properties file failed)
일부 분석 데이터를 SonarQube 서버로 보내도록 프로젝트를 구성하려고 합니다. MSBuild.SonarQube.Runner.exe begin
명령 다음에 msbuild
를 실행합니다. 내 솔루션에는 3개의 프로젝트 라이브러리와 1개의 단위 테스트 프로젝트가 있습니다.
start 명령과 msbuild는 오류 없이 실행되지만 end 명령은 다음 오류를 출력하고 SonarQube 서버에 게시되는 데이터가 없습니다.
C:\solutions> "C:\SonarQube Runner\MSBuild.SonarQube.Runner.exe" end
MSBuild SonarQube Runner Bootstrapper 1.0.2.0
Default properties file was found at C:\SonarQube Runner\SonarQube.Analysis.xml
Loading analysis properties from C:\SonarQube Runner\SonarQube.Analysis.xml
Post‑processing started.
MSBuild SonarQube Runner Post‑processor 1.0.2.0
No ProjectInfo.xml files were found. Possible causes: you specified an invalid build configuration or the custom MSBuild analysis targets were not imported. Generation of the sonar‑properties file failed. Unable to complete SonarQube analysis.
13:58:45.786 Creating a summary markdown file...
Post‑processing failed. Exit code: 1
이제 내가 무엇을 잘못하고 있는지 확인하십시오. 같은 것을 도와 주시겠습니까? 추가 정보를 제공해야 하는 경우 알려주세요.
감사합니다
참조 솔루션
방법 1:
Make sure you're running MSBuild version 12 or 14 to build & analyze your project, and also make sure that you're running the begin
and end
commands of the SonarQube Scanner for MSBuild as well as the msbuild
command from the same folder.
방법 2:
I had the same issue, it turned out that I didn't have MSBuild 12.0 installed. Once installed it it worked flawlessly :)
You can get it here http://www.microsoft.com/en‑us/download/details.aspx?id=40760
(by talisman027、Dinesh Bolkensteyn、Karaaie)