Template for a good new topic, formatted with Markdown:
-
ALM used is GitHub
-
Scanner command used when applicable (private details masked)
..sonar\scanner\dotnet-sonarscanner begin /k:“********” /o:“*******” /d:sonar.token=“${{ secrets.SONAR_TOKEN }}” /d:sonar.host.url=“https://sonarcloud.io”
..sonar\scanner\dotnet-sonarscanner end /d:sonar.token=“${{ secrets.SONAR_TOKEN }}” -
Languages of the repository
C#, Dart, Typescript, TSQL, HTML, SCSS -
Error observed (wrap logs/code around with triple quotes ``` for proper formatting)
Run .\.sonar\scanner\dotnet-sonarscanner begin /k:"*****" /o:"*****" /d:sonar.token="***" /d:sonar.host.url="https://sonarcloud.io"
SonarScanner for MSBuild 6.2
Using the .NET Core version of the Scanner for MSBuild
Pre-processing started.
Preparing working directories...
14:26:43.445 Updating build integration targets...
14:26:43.849 Fetching analysis configuration settings...
14:26:44.845 Provisioning analyzer assemblies for cs...
14:26:44.845 Installing required Roslyn analyzers...
14:26:44.845 Processing plugin: csharp version 9.23.0.88079
14:26:45.74 Processing plugin: vbnet version 9.23.0.88079
14:26:46.522 Processing plugin: securitycsharpfrontend version 10.5.0-M2.30409
14:26:47.921 Provisioning analyzer assemblies for vbnet...
14:26:47.921 Installing required Roslyn analyzers...
14:26:47.921 Processing plugin: csharp version 9.23.0.88079
14:26:47.922 Processing plugin: vbnet version 9.23.0.88079
14:26:47.929 Incremental PR analysis: Base branch parameter was not provided.
14:26:47.93 Cache data is empty. A full analysis will be performed.
14:26:47.949 Pre-processing succeeded.
SonarScanner for MSBuild 6.2
Using the .NET Core version of the Scanner for MSBuild
Post-processing started.
14:26:48.11 The SonarScanner for MSBuild integration failed: SonarCloud was unable to collect the required information about your projects.
Possible causes:
14:26:48.11 Generation of the sonar-properties file failed. Unable to complete the analysis.
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. Supported versions: MSBuild 16 and higher.
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).
14:26:48.111 sonar-project.properties files are not understood by the SonarScanner for MSBuild. Remove those files from the following folders: D:\a\***\***
14:26:48.112 Post-processing failed. Exit code: 1
Error: Process completed with exit code 1.
Also
SonarQube analysis could not be completed because the analysis configuration file could not be found: D:\a\{project directory}\.sonarqube\conf\SonarQubeAnalysisConfig.xml.
- Steps to reproduce
- Potential workaround
Do not share screenshots of logs – share the text itself (bonus points for being well-formatted)!