Search code examples
.netgithubsonarqubesonarcloud

Sonarcloud review for Github repository failed


I am using sonarcloud for https://github.com/fatihyildirim1o/aspnet-starter-kit but it is not working because of below error.

enter image description here

where am i doing wrong?


Solution

  • The command dotnet build fail with this error message (line 26 on the capture in the question) :

    MSBUILD : error MSB1011 : Specify wich project or solution file to use because this folder contains more than one project or solution file

    Nothing is build and SonarQube can't analyze.

    In the CI task, you need precise the csproj or the sln. If you need build and analyze several project/solution, it's need several dotnet build instructions.

    In you case, you can :

    dotnet build "onion-architecture.sln"