Анализ SonarQube с помощью файлов MSbuild Proj - PullRequest
0 голосов
/ 23 января 2019

Я хочу запустить анализ SonarQube для файлов msbuild proj. Сборка состоит из одного файла .proj. Этот файл создает несколько других .proj файлов. Когда я запускаю сборку, SonarQube печатает это сообщение об ошибке:

The SonarQube MSBuild integration failed: SonarQube was unable to collect the required information about your projects.
Possible causes:
1. The project has not been built - the project must be built in between the begin and end steps
2. An unsupported version of MSBuild has been used to build the project. Currently MSBuild 14.0 and 15.0 are supported
3. The begin, build and end steps have not all been launched from the same folder
4. None of the analyzed projects have a valid ProjectGuid and you have not used a solution (.sln)

Я проверил, и последний пункт, вероятно, является проблемой. Нет .sln, но к каждому из вызываемых файлов .proj добавлен Guid, но не самый верхний. (раньше он прекрасно работал с файлами .njsproj, у которых был guid)

Project Guid предоставляется так:

<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003" ToolsVersion="15.0" DefaultTargets="Build">
    <PropertyGroup>
        <ProjectGuid>{B1E36758-8A06-4793-A7D2-216DE578732D}</ProjectGuid>
    </PropertyGroup>
    ....
</Project>

Я тоже пробовал без фигурных скобок.

Я не совсем уверен, что ожидает sonarqube. Работает ли SonarQube с файлами .proj?

...