C# Files are not being analyzed with Sonar Cloud and Azure DevOps pipeline

Template for a good bug report, formatted with Markdown:

  • versions used (SonarQube Enterprise V8.4.1, Scanner- 'SonarScanner for MSBuild 5.0.3, Plugin, and any relevant extension)
  • error observed ```2020-11-11T09:52:01.2735980Z ##[section]Starting: Run Code Analysis
    2020-11-11T09:52:01.2867853Z ==============================================================================
    2020-11-11T09:52:01.2868163Z Task : Run Code Analysis
    2020-11-11T09:52:01.2868472Z Description : Run scanner and upload the results to the SonarQube server.
    2020-11-11T09:52:01.2868727Z Version : 4.16.0
    2020-11-11T09:52:01.2868944Z Author : sonarsource
    2020-11-11T09:52:01.2869465Z Help : Version: 4.16.0. This task is not needed for Maven and Gradle projects since the scanner should be run as part of the build.
    More Information
    2020-11-11T09:52:01.2870057Z ==============================================================================
    2020-11-11T09:52:01.6134936Z [command]D:\a_tasks\SonarQubePrepare_15b84ca1-b62f-4a2a-a403-89b77a063157\4.16.0\classic-sonar-scanner-msbuild\SonarScanner.MSBuild.exe end
    2020-11-11T09:52:01.6934864Z SonarScanner for MSBuild 5.0.3
    2020-11-11T09:52:01.6936801Z Using the .NET Framework version of the Scanner for MSBuild
    2020-11-11T09:52:01.7822455Z Post-processing started.
    2020-11-11T09:52:01.9499319Z 09:52:01.949 Fixed invalid Code Analysis ErrorLog file. Please check that VS 2015 Update 1 (or later) is installed. Fixed file: D:\a\1\s\VOD\bin\VOD.dll.RoslynCA_fixed.json
    2020-11-11T09:52:01.9721217Z 09:52:01.971 Fixed invalid Code Analysis ErrorLog file. Please check that VS 2015 Update 1 (or later) is installed. Fixed file: D:\a\1\s\VOD\bin\VOD.dll.RoslynCA_fixed.json
    2020-11-11T09:52:02.0606867Z 09:52:02.06 09:52:02.06 WARNING: File ‘D:\a\1\s\VOD\Properties\PublishProfiles\VOD Swampcabbage.pubxml’ does not exist.
    2020-11-11T09:52:02.0613046Z 09:52:02.06 09:52:02.06 WARNING: File ‘D:\a\1\s\VOD\Web\Content\Scripts\jqueryConfirm\jquery-confirm.jsOld’ does not exist.
    2020-11-11T09:52:02.0613881Z 09:52:02.06 09:52:02.06 WARNING: File ‘D:\a\1\s\VOD\Web\Content\Scripts\jqueryConfirm\jquery-confirm.min.jsOld’ does not exist.
    2020-11-11T09:52:02.0669937Z 09:52:02.066 09:52:02.066 WARNING: File ‘C:\Users\VssAdministrator\AppData\Local\Temp.NETFramework,Version=v4.6.1.SqlClrAttributes.cs’ is not located under the root directory ‘D:\a\1\s’ and will not be analyzed.
    2020-11-11T09:52:02.0670811Z 09:52:02.066 09:52:02.066 WARNING: File ‘D:\a\1\s\VODDB\VODDB.publish.xml’ does not exist.
    2020-11-11T09:52:02.0908021Z Calling the TFS Processor executable…
    2020-11-11T09:52:02.2493534Z Attempting to locate the CodeCoverage.exe tool…
    2020-11-11T09:52:02.2546248Z Attempting to locate the CodeCoverage.exe tool using setup configuration…
    2020-11-11T09:52:02.3141238Z Code coverage command line tool: C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\Team Tools\Dynamic Code Coverage Tools\CodeCoverage.exe
    2020-11-11T09:52:02.3889865Z Fetching code coverage report information from TFS…
    2020-11-11T09:52:02.3911624Z Attempting to locate a test results (.trx) file…
    2020-11-11T09:52:02.4306248Z Looking for TRX files in: D:\a\1\TestResults
    2020-11-11T09:52:02.4310334Z No test results files found
    2020-11-11T09:52:02.4677653Z Did not find any binary coverage files in the expected location.
    2020-11-11T09:52:02.4691551Z Falling back on locating coverage files in the agent temp directory.
    2020-11-11T09:52:02.4706998Z Searching for coverage files in D:\a_temp
    2020-11-11T09:52:02.4707543Z No coverage files found in the agent temp directory.
    2020-11-11T09:52:02.4707928Z Coverage report conversion completed successfully.
    2020-11-11T09:52:02.4794395Z The TFS Processor has finished
    2020-11-11T09:52:02.4854201Z Calling the SonarScanner CLI…
    2020-11-11T09:52:06.6499748Z INFO: Scanner configuration file: D:\a_tasks\SonarQubePrepare_15b84ca1-b62f-4a2a-a403-89b77a063157\4.16.0\classic-sonar-scanner-msbuild\sonar-scanner-4.4.0.2170\bin…\conf\sonar-scanner.properties
    2020-11-11T09:52:06.6621736Z INFO: Project root configuration file: D:\a\1.sonarqube\out\sonar-project.properties
    2020-11-11T09:52:07.2165215Z INFO: SonarScanner 4.4.0.2170
    2020-11-11T09:52:07.2170403Z INFO: Java 11.0.8 AdoptOpenJDK (64-bit)
    2020-11-11T09:52:07.2170692Z INFO: Windows Server 2016 10.0 amd64
    2020-11-11T09:52:10.3635529Z INFO: User cache: C:\Users\VssAdministrator.sonar\cache
    2020-11-11T09:52:14.1982377Z INFO: Scanner configuration file: D:\a_tasks\SonarQubePrepare_15b84ca1-b62f-4a2a-a403-89b77a063157\4.16.0\classic-sonar-scanner-msbuild\sonar-scanner-4.4.0.2170\bin…\conf\sonar-scanner.properties
    2020-11-11T09:52:14.1984946Z INFO: Project root configuration file: D:\a\1.sonarqube\out\sonar-project.properties
    2020-11-11T09:52:14.1986259Z INFO: Analyzing on SonarQube server 8.4.1
    2020-11-11T09:52:14.1987164Z INFO: Default locale: “en_US”, source code encoding: “windows-1252” (analysis is platform dependent)
    2020-11-11T09:52:15.9035070Z INFO: Load global settings
    2020-11-11T09:52:16.3009109Z INFO: Load global settings (done) | time=399ms
    2020-11-11T09:52:16.3068682Z INFO: Server id: 5A04153E-AVqtjH24AbJMstQYQAr1
    2020-11-11T09:52:16.3415165Z INFO: User cache: C:\Users\VssAdministrator.sonar\cache
    2020-11-11T09:52:16.3489711Z INFO: Load/download plugins
    2020-11-11T09:52:16.3491719Z INFO: Load plugins index
    2020-11-11T09:52:16.5211938Z INFO: Load plugins index (done) | time=172ms
    2020-11-11T09:52:21.6883660Z INFO: Load/download plugins (done) | time=5336ms
    2020-11-11T09:52:22.8741378Z INFO: Loaded core extensions: developer-scanner
    2020-11-11T09:52:23.8002652Z INFO: Process project properties
    2020-11-11T09:52:23.9100503Z INFO: Process project properties (done) | time=105ms
    2020-11-11T09:52:23.9100923Z INFO: Execute project builders
    2020-11-11T09:52:24.0010071Z INFO: Execute project builders (done) | time=99ms
    2020-11-11T09:52:24.0050149Z INFO: Project key: df35e257-d27c-4957-96e2-a0f9865990d7_Road_TestPipeline
    2020-11-11T09:52:24.0050663Z INFO: Base dir: D:\a\1\s
    2020-11-11T09:52:24.0051056Z INFO: Working dir: D:\a\1.sonarqube\out.sonar
    2020-11-11T09:52:24.1991522Z INFO: Load project settings for component key: ‘df35e257-d27c-4957-96e2-a0f9865990d7_Road_TestPipeline’
    2020-11-11T09:52:24.3043282Z INFO: Load project branches
    2020-11-11T09:52:24.3392071Z INFO: Load project branches (done) | time=34ms
    2020-11-11T09:52:24.3392646Z INFO: Load project pull requests
    2020-11-11T09:52:24.3712975Z INFO: Load project pull requests (done) | time=33ms
    2020-11-11T09:52:24.3713861Z INFO: Load branch configuration
    2020-11-11T09:52:24.3750562Z INFO: Load branch configuration (done) | time=1ms
    2020-11-11T09:52:24.4331234Z INFO: Load quality profiles
    2020-11-11T09:52:24.6646458Z INFO: Load quality profiles (done) | time=215ms
    2020-11-11T09:52:24.6646830Z INFO: Auto-configuring with CI ‘Azure DevOps’
    2020-11-11T09:52:24.6647247Z INFO: Load active rules
    2020-11-11T09:52:27.0104731Z INFO: Load active rules (done) | time=2325ms
    2020-11-11T09:52:27.1633571Z INFO: Indexing files…
    2020-11-11T09:52:27.1634334Z INFO: Project configuration:
    2020-11-11T09:52:27.1635401Z INFO: Excluded sources: /VOD/Code/WS/WSMiles/MilesClasses/XSD/, /VOD/Web/Content/Scripts/, /VOD/Web/Content/css/, **/.xml, **/.xsd, */ng.js
    2020-11-11T09:52:30.0170504Z INFO: Indexing files of module ‘VODDB’
    2020-11-11T09:52:30.0170891Z INFO: Base dir: D:\a\1\s\VODDB
    2020-11-11T09:52:30.0171308Z INFO: Source paths: dbo/Tables/VOD_STOCK_RELOCATE_VEHICLE.sql, dbo/Tables/VEHICLE…
    2020-11-11T09:52:30.0171831Z INFO: Excluded sources: /VOD/Code/WS/WSMiles/MilesClasses/XSD/
    , /VOD/Web/Content/Scripts/, /VOD/Web/Content/css/, **/.xml, **/.xsd, */ng.js
    2020-11-11T09:52:30.3759631Z INFO: Indexing files of module ‘VOD.UnitTest’
    2020-11-11T09:52:30.3764927Z INFO: Base dir: D:\a\1\s\VOD.UnitTest
    2020-11-11T09:52:30.3766186Z INFO: Test paths: Code/eSignature/eSignatureTest.cs, Code/EventLog/EventLogTest.c…
    2020-11-11T09:52:30.3766885Z INFO: Excluded sources: /VOD/Code/WS/WSMiles/MilesClasses/XSD/, /VOD/Web/Content/Scripts/, /VOD/Web/Content/css/, **/.xml, **/.xsd, */ng.js
    2020-11-11T09:52:30.3767883Z INFO: Load project repositories
    2020-11-11T09:52:30.3769561Z INFO: Load project repositories (done) | time=104ms
    2020-11-11T09:52:30.3770013Z INFO: Indexing files of module ‘VOD’
    2020-11-11T09:52:30.3770421Z INFO: Base dir: D:\a\1\s\VOD
    2020-11-11T09:52:30.3770950Z INFO: Source paths: Code/CountryParameters/CountryParameter.cs, Code/DMS/DMS.cs, …
    2020-11-11T09:52:30.3771630Z INFO: Excluded sources: /VOD/Code/WS/WSMiles/MilesClasses/XSD/
    , /VOD/Web/Content/Scripts/, /VOD/Web/Content/css/, **/.xml, **/.xsd, */ng.js
    2020-11-11T09:52:30.8397574Z INFO: Indexing files of module ‘CoCMilesCICD-Road-CI-Master-Test_TEST’
    2020-11-11T09:52:30.8424029Z INFO: Base dir: D:\a\1\s
    2020-11-11T09:52:30.8425062Z INFO: Source paths: packages/Microsoft.Net.Compilers.1.0.0/tools/csc.exe, package…
    2020-11-11T09:52:30.8426328Z INFO: Excluded sources: /VOD/Code/WS/WSMiles/MilesClasses/XSD/, /VOD/Web/Content/Scripts/, /VOD/Web/Content/css/, **/.xml, **/*.xsd, */ng.js
    2020-11-11T09:52:30.8427356Z INFO: 1199 files indexed
    2020-11-11T09:52:30.8428213Z INFO: 189 files ignored because of inclusion/exclusion patterns
    2020-11-11T09:52:30.8428891Z INFO: 16 files ignored because of scm ignore settings
    2020-11-11T09:52:30.8429504Z INFO: Quality profile for cs: Sonar way
    2020-11-11T09:52:30.8430097Z INFO: Quality profile for css: Sonar way
    2020-11-11T09:52:30.8430737Z INFO: Quality profile for js: Sonar way Recommended
    2020-11-11T09:52:30.8431354Z INFO: Quality profile for tsql: Sonar way
    2020-11-11T09:52:30.8431973Z INFO: Quality profile for web: Sonar way
    2020-11-11T09:52:30.8432568Z INFO: Quality profile for xml: Sonar way
    2020-11-11T09:52:30.8433201Z INFO: ------------- Run sensors on module VOD.UnitTest
    2020-11-11T09:52:31.3340728Z INFO: Load metrics repository
    2020-11-11T09:52:31.3437764Z INFO: Load metrics repository (done) | time=129ms
    2020-11-11T09:52:35.1158581Z WARNING: WARNING: An illegal reflective access operation has occurred
    2020-11-11T09:52:35.1161103Z WARNING: WARNING: Illegal reflective access by net.sf.cglib.core.ReflectUtils$1 (file:/C:/Users/VssAdministrator/.sonar/cache/a89f1943fc75b65becd9fb4ecab8d913/sonar-tsql-plugin.jar) to method java.lang.ClassLoader.defineClass(java.lang.String,byte,int,int,java.security.ProtectionDomain)
    2020-11-11T09:52:35.1169460Z WARNING: WARNING: Please consider reporting this to the maintainers of net.sf.cglib.core.ReflectUtils$1
    2020-11-11T09:52:35.1188933Z WARNING: WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations
    2020-11-11T09:52:35.1302819Z WARNING: WARNING: All illegal access operations will be denied in a future release
    2020-11-11T09:52:37.4639012Z INFO: Sensor SonarCSS Rules [cssfamily]
    2020-11-11T09:52:37.4639426Z INFO: No CSS, PHP, HTML or VueJS files are found in the project. CSS analysis is skipped.
    2020-11-11T09:52:37.4639795Z INFO: Sensor SonarCSS Rules [cssfamily] (done) | time=2ms
    2020-11-11T09:52:37.4640384Z INFO: Sensor C# Properties [csharp]
    2020-11-11T09:52:38.1208882Z INFO: Sensor C# Properties [csharp] (done) | time=48ms
    2020-11-11T09:52:38.1209466Z INFO: Sensor JavaXmlSensor [java]
    2020-11-11T09:52:38.1209785Z INFO: Sensor JavaXmlSensor [java] (done) | time=1ms
    2020-11-11T09:52:38.1210065Z INFO: Sensor JaCoCo XML Report Importer [jacoco]
    2020-11-11T09:52:38.1210630Z INFO: ‘sonar.coverage.jacoco.xmlReportPaths’ is not defined. Using default locations: target/site/jacoco/jacoco.xml,target/site/jacoco-it/jacoco.xml,build/reports/jacoco/test/jacocoTestReport.xml
    2020-11-11T09:52:38.1211237Z INFO: No report imported, no coverage information will be imported by JaCoCo XML Report Importer
    2020-11-11T09:52:38.1211632Z INFO: Sensor JaCoCo XML Report Importer [jacoco] (done) | time=4ms
    2020-11-11T09:52:38.1211949Z INFO: Sensor ThymeLeaf template sensor [securityjavafrontend]
    2020-11-11T09:52:38.2724938Z INFO: Sensor ThymeLeaf template sensor [securityjavafrontend] (done) | time=135ms
    2020-11-11T09:52:38.2735800Z INFO: ------------- Run sensors on module VODDB
    2020-11-11T09:52:38.2736268Z INFO: Sensor SonarCSS Rules [cssfamily]
    2020-11-11T09:52:38.2736813Z INFO: No CSS, PHP, HTML or VueJS files are found in the project. CSS analysis is skipped.
    2020-11-11T09:52:38.2737177Z INFO: Sensor SonarCSS Rules [cssfamily] (done) | time=1ms
    2020-11-11T09:52:38.2737413Z INFO: Sensor JavaXmlSensor [java]
    2020-11-11T09:52:38.2737856Z INFO: Sensor JavaXmlSensor [java] (done) | time=2ms
    2020-11-11T09:52:38.2738108Z INFO: Sensor HTML [web]
    2020-11-11T09:52:38.2738338Z INFO: Sensor HTML [web] (done) | time=8ms
    2020-11-11T09:52:38.2738578Z INFO: Sensor JaCoCo XML Report Importer [jacoco]
    2020-11-11T09:52:38.2739081Z INFO: ‘sonar.coverage.jacoco.xmlReportPaths’ is not defined. Using default locations: target/site/jacoco/jacoco.xml,target/site/jacoco-it/jacoco.xml,build/reports/jacoco/test/jacocoTestReport.xml
    2020-11-11T09:52:38.2739632Z INFO: No report imported, no coverage information will be imported by JaCoCo XML Report Importer
    2020-11-11T09:52:38.2740007Z INFO: Sensor JaCoCo XML Report Importer [jacoco] (done) | time=2ms
    2020-11-11T09:52:38.2740258Z INFO: Sensor T-SQL Sensor [tsql]
    2020-11-11T09:52:38.2740484Z INFO: 366 source files to be analyzed
    2020-11-11T09:52:40.0109079Z WARN: Unable to parse file ‘/D:/a/1/s/VODDB/dbo/Tables/ETD_HISTORY.sql’ : Parse error at line 12 column 12:

2020-11-11T09:52:44.5939573Z INFO: 366/366 files, last analyzed (3 ms): VODDB/dbo/Stored Procedures/P_SET_DOCUMENTATION_STATUS.sql
2020-11-11T09:52:44.6381753Z INFO: Sensor T-SQL Sensor [tsql] (done) | time=6568ms
2020-11-11T09:52:44.6382049Z INFO: Sensor ThymeLeaf template sensor [securityjavafrontend]
2020-11-11T09:52:44.6382362Z INFO: Sensor ThymeLeaf template sensor [securityjavafrontend] (done) | time=9ms
2020-11-11T09:52:44.6382626Z INFO: ------------- Run sensors on module VOD
2020-11-11T09:52:44.6382865Z INFO: Sensor SonarCSS Metrics [cssfamily]
2020-11-11T09:52:44.7583978Z INFO: Sensor SonarCSS Metrics [cssfamily] (done) | time=223ms
2020-11-11T09:52:44.7584377Z INFO: Sensor SonarCSS Rules [cssfamily]
2020-11-11T09:52:52.2082912Z INFO: 69 source files to be analyzed
2020-11-11T09:52:55.5052873Z INFO: 69/69 source files have been analyzed
2020-11-11T09:52:55.6454041Z INFO: Sensor SonarCSS Rules [cssfamily] (done) | time=10749ms
2020-11-11T09:52:55.7995651Z INFO: Sensor C# Properties [csharp]
2020-11-11T09:52:55.7997114Z WARN: Analyzer working directory does not exist: ‘D:\a\1.sonarqube\out\0\output-cs’. Analyzer results won’t be loaded from this directory.
2020-11-11T09:52:55.7997581Z INFO: Sensor C# Properties [csharp] (done) | time=1ms
2020-11-11T09:52:55.7997866Z INFO: Sensor JavaXmlSensor [java]
2020-11-11T09:52:55.7998201Z INFO: Sensor JavaXmlSensor [java] (done) | time=14ms
2020-11-11T09:52:55.7998440Z INFO: Sensor HTML [web]
2020-11-11T09:52:57.4774289Z INFO: Sensor HTML [web] (done) | time=1934ms
2020-11-11T09:52:57.4774711Z INFO: Sensor XML Sensor [xml]
2020-11-11T09:52:57.4774947Z INFO: 7 source files to be analyzed
2020-11-11T09:53:06.0567616Z INFO: Sensor XML Sensor [xml] (done) | time=8596ms
2020-11-11T09:53:06.0568797Z INFO: Sensor JaCoCo XML Report Importer [jacoco]
2020-11-11T09:53:06.0585123Z INFO: 7/7 source files have been analyzed
2020-11-11T09:53:06.0635908Z INFO: ‘sonar.coverage.jacoco.xmlReportPaths’ is not defined. Using default locations: target/site/jacoco/jacoco.xml,target/site/jacoco-it/jacoco.xml,build/reports/jacoco/test/jacocoTestReport.xml
2020-11-11T09:53:06.0636614Z INFO: No report imported, no coverage information will be imported by JaCoCo XML Report Importer
2020-11-11T09:53:06.0637032Z INFO: Sensor JaCoCo XML Report Importer [jacoco] (done) | time=9ms
2020-11-11T09:53:06.0637337Z INFO: Sensor JavaScript analysis [javascript]
2020-11-11T09:53:11.5770073Z INFO: 65 source files to be analyzed
2020-11-11T09:53:21.5782364Z INFO: 30/65 files analyzed, current file: VOD/Web/js/VOD.js
2020-11-11T09:53:27.2907134Z INFO: 65/65 source files have been analyzed
2020-11-11T09:53:27.2908691Z INFO: Sensor SonarJS [javascript]
2020-11-11T09:53:27.2912421Z INFO: 65 source files to be analyzed
2020-11-11T09:53:35.7629613Z INFO: Sensor SonarJS [javascript] (done) | time=8596ms
2020-11-11T09:53:35.7630143Z INFO: Sensor JavaScript analysis [javascript] (done) | time=29702ms
2020-11-11T09:53:35.7630776Z INFO: 65/65 source files have been analyzed
2020-11-11T09:53:35.7631261Z INFO: Sensor ThymeLeaf template sensor [securityjavafrontend]
2020-11-11T09:53:35.9941618Z INFO: Sensor ThymeLeaf template sensor [securityjavafrontend] (done) | time=9ms
2020-11-11T09:53:36.1133773Z INFO: ------------- Run sensors on module CoCMilesCICD-Road-CI-Master-Test_TEST
2020-11-11T09:53:36.2063501Z INFO: Sensor SonarCSS Rules [cssfamily]
2020-11-11T09:53:36.2079669Z INFO: No CSS, PHP, HTML or VueJS files are found in the project. CSS analysis is skipped.
2020-11-11T09:53:36.2089201Z INFO: Sensor SonarCSS Rules [cssfamily] (done) | time=1ms
2020-11-11T09:53:36.2089778Z INFO: Sensor JavaXmlSensor [java]
2020-11-11T09:53:36.2090050Z INFO: Sensor JavaXmlSensor [java] (done) | time=0ms
2020-11-11T09:53:36.2090336Z INFO: Sensor JaCoCo XML Report Importer [jacoco]
2020-11-11T09:53:36.2090925Z INFO: ‘sonar.coverage.jacoco.xmlReportPaths’ is not defined. Using default locations: target/site/jacoco/jacoco.xml,target/site/jacoco-it/jacoco.xml,build/reports/jacoco/test/jacocoTestReport.xml
2020-11-11T09:53:36.2091609Z INFO: No report imported, no coverage information will be imported by JaCoCo XML Report Importer
2020-11-11T09:53:36.2092185Z INFO: Sensor JaCoCo XML Report Importer [jacoco] (done) | time=0ms
2020-11-11T09:53:36.2092654Z INFO: Sensor ThymeLeaf template sensor [securityjavafrontend]
2020-11-11T09:53:36.2092995Z INFO: Sensor ThymeLeaf template sensor [securityjavafrontend] (done) | time=8ms
2020-11-11T09:53:36.2093255Z INFO: Sensor C# [csharp]
2020-11-11T09:53:36.2093566Z INFO: Importing results from 5 proto files in ‘D:\a\1.sonarqube\out\2\output-cs’
2020-11-11T09:53:36.2093859Z INFO: Importing 2 Roslyn reports
2020-11-11T09:53:36.2094332Z WARN: Rule CS0108 was not found in the SARIF report, assuming default severity
2020-11-11T09:53:36.2094683Z WARN: Rule CS0108 was not found in the SARIF report, assuming default severity
2020-11-11T09:53:36.2095058Z WARN: Rule CS0108 was not found in the SARIF report, assuming default severity
2020-11-11T09:53:36.2095411Z WARN: Rule CS0105 was not found in the SARIF report, assuming default severity
2020-11-11T09:53:36.2095763Z WARN: Rule CS0114 was not found in the SARIF report, assuming default severity
2020-11-11T09:53:36.2096137Z WARN: Rule CS0108 was not found in the SARIF report, assuming default severity
2020-11-11T09:53:36.2096485Z WARN: Rule CS0114 was not found in the SARIF report, assuming default severity
2020-11-11T09:53:36.2195019Z WARN: Rule CS0114 was not found in the SARIF report, assuming default severity
2020-11-11T09:53:36.2290135Z WARN: Rule CS0108 was not found in the SARIF report, assuming default severity
2020-11-11T09:53:36.2291089Z WARN: Rule CS0114 was not found in the SARIF report, assuming default severity
2020-11-11T09:53:36.2291818Z WARN: Rule CS0108 was not found in the SARIF report, assuming default severity
2020-11-11T09:53:36.2293540Z WARN: Rule CS0114 was not found in the SARIF report, assuming default severity
2020-11-11T09:53:36.2294325Z WARN: Rule CS0114 was not found in the SARIF report, assuming default severity
2020-11-11T09:53:36.2299703Z WARN: Rule CS0114 was not found in the SARIF report, assuming default severity
2020-11-11T09:53:36.2304381Z WARN: Rule CS0114 was not found in the SARIF report, assuming default severity
2020-11-11T09:53:36.2304936Z WARN: Rule CS0108 was not found in the SARIF report, assuming default severity
2020-11-11T09:53:36.2305563Z WARN: Rule CS0114 was not found in the SARIF report, assuming default severity
2020-11-11T09:53:36.2305992Z WARN: Rule CS0108 was not found in the SARIF report, assuming default severity
2020-11-11T09:53:36.2306461Z WARN: Rule CS0114 was not found in the SARIF report, assuming default severity
2020-11-11T09:53:36.2307141Z WARN: Rule CS0114 was not found in the SARIF report, assuming default severity
2020-11-11T09:53:36.2307599Z WARN: Rule CS0108 was not found in the SARIF report, assuming default severity
2020-11-11T09:53:36.2308075Z WARN: Rule CS0114 was not found in the SARIF report, assuming default severity
2020-11-11T09:53:36.2308532Z WARN: Rule CS0108 was not found in the SARIF report, assuming default severity
2020-11-11T09:53:36.2369182Z WARN: Rule CS0114 was not found in the SARIF report, assuming default severity
2020-11-11T09:53:36.2371810Z WARN: Rule CS0114 was not found in the SARIF report, assuming default severity
2020-11-11T09:53:36.2373948Z WARN: Rule CS0108 was not found in the SARIF report, assuming default severity
2020-11-11T09:53:36.2380271Z WARN: Rule CS0114 was not found in the SARIF report, assuming default severity
2020-11-11T09:53:36.2383087Z WARN: Rule CS0108 was not found in the SARIF report, assuming default severity
2020-11-11T09:53:36.2387324Z WARN: Rule CS0114 was not found in the SARIF report, assuming default severity
2020-11-11T09:53:36.2387815Z WARN: Rule CS0114 was not found in the SARIF report, assuming default severity
2020-11-11T09:53:36.2400189Z WARN: Rule CS0108 was not found in the SARIF report, assuming default severity
2020-11-11T09:53:36.2438670Z WARN: Rule CS0114 was not found in the SARIF report, assuming default severity
2020-11-11T09:53:36.2446070Z WARN: Rule CS0108 was not found in the SARIF report, assuming default severity
2020-11-11T09:53:36.2448134Z WARN: Rule CS0114 was not found in the SARIF report, assuming default severity
2020-11-11T09:53:36.2449251Z WARN: Rule CS0114 was not found in the SARIF report, assuming default severity
2020-11-11T09:53:36.2449628Z WARN: Rule CS0108 was not found in the SARIF report, assuming default severity
2020-11-11T09:53:36.2449982Z WARN: Rule CS0114 was not found in the SARIF report, assuming default severity
2020-11-11T09:53:36.2450341Z WARN: Rule CS0108 was not found in the SARIF report, assuming default severity
2020-11-11T09:53:36.2450846Z WARN: Rule CS0114 was not found in the SARIF report, assuming default severity
2020-11-11T09:53:36.2451466Z WARN: Rule CS0114 was not found in the SARIF report, assuming default severity
2020-11-11T09:53:36.2451914Z WARN: Rule CS0108 was not found in the SARIF report, assuming default severity
2020-11-11T09:53:36.2466823Z WARN: Rule CS0114 was not found in the SARIF report, assuming default severity
2020-11-11T09:53:36.2469254Z WARN: Rule CS0108 was not found in the SARIF report, assuming default severity
2020-11-11T09:53:36.2471548Z WARN: Rule CS0114 was not found in the SARIF report, assuming default severity
2020-11-11T09:53:36.2483951Z WARN: Rule CS0114 was not found in the SARIF report, assuming default severity
2020-11-11T09:53:36.2486281Z WARN: Rule CS0108 was not found in the SARIF report, assuming default severity
2020-11-11T09:53:36.2489952Z WARN: Rule CS0114 was not found in the SARIF report, assuming default severity
2020-11-11T09:53:36.2492649Z WARN: Rule CS0108 was not found in the SARIF report, assuming default severity
2020-11-11T09:53:36.2493604Z WARN: Rule CS0114 was not found in the SARIF report, assuming default severity
2020-11-11T09:53:36.2495812Z WARN: Rule CS0114 was not found in the SARIF report, assuming default severity
2020-11-11T09:53:36.2499635Z WARN: Rule CS0108 was not found in the SARIF report, assuming default severity
2020-11-11T09:53:36.2500260Z WARN: Rule CS0114 was not found in the SARIF report, assuming default severity
2020-11-11T09:53:36.2502209Z WARN: Rule CS0108 was not found in the SARIF report, assuming default severity
2020-11-11T09:53:36.2504181Z WARN: Rule CS0114 was not found in the SARIF report, assuming default severity
2020-11-11T09:53:36.2519493Z WARN: Rule CS0114 was not found in the SARIF report, assuming default severity
2020-11-11T09:53:36.2520191Z WARN: Rule CS0108 was not found in the SARIF report, assuming default severity
2020-11-11T09:53:36.2520988Z WARN: Rule CS0114 was not found in the SARIF report, assuming default severity
2020-11-11T09:53:36.2521449Z WARN: Rule CS0108 was not found in the SARIF report, assuming default severity
2020-11-11T09:53:36.2523508Z WARN: Rule CS0114 was not found in the SARIF report, assuming default severity
2020-11-11T09:53:36.2525573Z WARN: Rule CS0114 was not found in the SARIF report, assuming default severity
2020-11-11T09:53:36.2684637Z WARN: Rule CS0168 was not found in the SARIF report, assuming default severity
2020-11-11T09:53:36.2685258Z WARN: Rule CS0168 was not found in the SARIF report, assuming default severity
2020-11-11T09:53:36.2686430Z WARN: Rule CS0168 was not found in the SARIF report, assuming default severity
2020-11-11T09:53:36.2705433Z WARN: Rule CS0168 was not found in the SARIF report, assuming default severity
2020-11-11T09:53:36.2706201Z WARN: Rule CS0168 was not found in the SARIF report, assuming default severity
2020-11-11T09:53:36.2736062Z WARN: Rule CS0168 was not found in the SARIF report, assuming default severity
2020-11-11T09:53:36.2783007Z WARN: Rule CS0168 was not found in the SARIF report, assuming default severity
2020-11-11T09:53:36.2786827Z WARN: Rule CS0618 was not found in the SARIF report, assuming default severity
2020-11-11T09:53:36.3452890Z WARN: Rule CS0618 was not found in the SARIF report, assuming default severity
2020-11-11T09:53:36.3490791Z WARN: Rule CS0168 was not found in the SARIF report, assuming default severity
2020-11-11T09:53:36.3537329Z WARN: Rule CS0168 was not found in the SARIF report, assuming default severity
2020-11-11T09:53:36.3567889Z WARN: Rule CS0168 was not found in the SARIF report, assuming default severity
2020-11-11T09:53:36.3626327Z WARN: Rule CS0168 was not found in the SARIF report, assuming default severity
2020-11-11T09:53:36.3633257Z WARN: Rule CS0168 was not found in the SARIF report, assuming default severity
2020-11-11T09:53:36.4045749Z WARN: Rule CS0219 was not found in the SARIF report, assuming default severity
2020-11-11T09:53:36.4057746Z WARN: Rule CS0414 was not found in the SARIF report, assuming default severity
2020-11-11T09:53:36.4073764Z WARN: Rule CS0414 was not found in the SARIF report, assuming default severity
2020-11-11T09:53:36.4143112Z INFO: Sensor C# [csharp] (done) | time=461ms
2020-11-11T09:53:36.4143569Z INFO: Sensor JavaSecuritySensor [security]
2020-11-11T09:53:36.4147566Z INFO: Reading type hierarchy from: D:\a\1.sonarqube\out.sonar\ucfg2\java
2020-11-11T09:53:36.4148264Z INFO: Read 0 type definitions
2020-11-11T09:53:36.4191757Z INFO: Reading UCFGs from: D:\a\1.sonarqube\out.sonar\ucfg2\java
2020-11-11T09:53:36.4192298Z INFO: No UCFGs have been included for analysis.
2020-11-11T09:53:36.4192695Z INFO: Sensor JavaSecuritySensor [security] (done) | time=4ms
2020-11-11T09:53:36.4193051Z INFO: Sensor CSharpSecuritySensor [security]
2020-11-11T09:53:36.4193452Z INFO: Reading type hierarchy from: D:\a\1.sonarqube\out\ucfg_cs2
2020-11-11T09:53:36.4458794Z INFO: Read 0 type definitions
2020-11-11T09:53:36.4460270Z INFO: Reading UCFGs from: D:\a\1.sonarqube\out\ucfg_cs2
2020-11-11T09:53:36.4467888Z INFO: No UCFGs have been included for analysis.
2020-11-11T09:53:36.4468483Z INFO: Sensor CSharpSecuritySensor [security] (done) | time=16ms
2020-11-11T09:53:36.4470496Z INFO: Sensor PhpSecuritySensor [security]
2020-11-11T09:53:36.4564127Z INFO: Reading type hierarchy from: D:\a\1.sonarqube\out.sonar\ucfg2\php
2020-11-11T09:53:36.4592194Z INFO: Read 0 type definitions
2020-11-11T09:53:36.4592956Z INFO: Reading UCFGs from: D:\a\1.sonarqube\out.sonar\ucfg2\php
2020-11-11T09:53:36.4593586Z INFO: No UCFGs have been included for analysis.
2020-11-11T09:53:36.4594216Z INFO: Sensor PhpSecuritySensor [security] (done) | time=1ms
2020-11-11T09:53:36.4594643Z INFO: Sensor PythonSecuritySensor [security]
2020-11-11T09:53:36.4595082Z INFO: Reading type hierarchy from: D:\a\1.sonarqube\out.sonar\ucfg2\python
2020-11-11T09:53:36.4595971Z INFO: Read 0 type definitions
2020-11-11T09:53:36.4596519Z INFO: Reading UCFGs from: D:\a\1.sonarqube\out.sonar\ucfg2\python
2020-11-11T09:53:36.4597280Z INFO: No UCFGs have been included for analysis.
2020-11-11T09:53:36.4597635Z INFO: Sensor PythonSecuritySensor [security] (done) | time=3ms
2020-11-11T09:53:36.4598000Z INFO: ------------- Run sensors on project
2020-11-11T09:53:36.4598300Z INFO: Sensor Zero Coverage Sensor
2020-11-11T09:53:36.8542921Z INFO: Sensor Zero Coverage Sensor (done) | time=228ms
2020-11-11T09:53:37.7289463Z INFO: SCM Publisher SCM provider for this project is: git
2020-11-11T09:53:37.7300624Z INFO: SCM Publisher 1085 source files to be analyzed
2020-11-11T09:53:47.7308879Z INFO: 368/1085 source files have been analyzed
2020-11-11T09:53:57.7314812Z INFO: 813/1085 source files have been analyzed
2020-11-11T09:54:04.4957853Z INFO: SCM Publisher 1085/1085 source files have been analyzed (done) | time=26769ms
2020-11-11T09:54:05.3943158Z INFO: CPD Executor 93 files had no CPD blocks
2020-11-11T09:54:05.3944215Z INFO: CPD Executor Calculating CPD for 389 files
2020-11-11T09:54:05.9117819Z INFO: CPD Executor CPD calculation finished (done) | time=513ms
2020-11-11T09:54:07.0577241Z INFO: Analysis report generated in 1030ms, dir size=56 MB
2020-11-11T09:54:10.1740327Z INFO: Analysis report compressed in 3116ms, zip size=7 MB
2020-11-11T09:54:11.9978355Z INFO: Analysis report uploaded in 1823ms
2020-11-11T09:54:12.0121562Z INFO: ANALYSIS SUCCESSFUL, you can browse https://daiscs01.devcloud.corpinter.net/dashboard?id=df35e257-d27c-4957-96e2-a0f9865990d7_Road_TestPipeline
2020-11-11T09:54:12.0123621Z INFO: Note that you will be able to access the updated dashboard once the server has processed the submitted analysis report
2020-11-11T09:54:12.0124688Z INFO: More about the report processing at https://daiscs01.devcloud.corpinter.net/api/ce/task?id=AXW2uhjdZA7OJJrf9Vu2
2020-11-11T09:54:14.5819396Z INFO: Analysis total time: 1:51.698 s
2020-11-11T09:54:14.5832945Z INFO: ------------------------------------------------------------------------
2020-11-11T09:54:14.5896883Z INFO: EXECUTION SUCCESS
2020-11-11T09:54:14.5897741Z INFO: ------------------------------------------------------------------------
2020-11-11T09:54:14.5898295Z INFO: Total time: 2:07.977s
2020-11-11T09:54:14.9258578Z INFO: Final Memory: 35M/117M
2020-11-11T09:54:14.9263376Z INFO: ------------------------------------------------------------------------
2020-11-11T09:54:15.3734725Z The SonarScanner CLI has finished
2020-11-11T09:54:15.3735448Z 09:54:15.37 Post-processing succeeded.
2020-11-11T09:54:15.3912681Z ##[section]Finishing: Run Code Analysis```

  • potential workaround

P.S.: use the #bug:fault sub-category if you’re hitting a specific crash/error , or the #bug:fp sub-category for rules-related behaviour

Hi @Phaneendra_kotha and welcome to the community.

Well that’s all but not clear.

Which kind of problem do you have ? Can you share a bit more context ?

And this log with debug mode enabled (system.debug = true pipeline variable), in a text file would also help.

Thanks in advance.

Hi Caro,

I’m using Azure DevOps for CI tasks and for the task sonar run analysis not all the source code if analysed under the workspace.
Able to see reports with findings from HTML,CSS,Javascript,XML but not from C# code which is important for us.

image
Image reference of workspace -

4_Prepare analysis on SonarQube.txt (23.3 KB) 11_Run Code Analysis.txt (2.5 MB)

@mickaelcaro Requesting your help here.

What is the version of msbuild you are using to build your solution between the prepare and analysis step ?

Logs attached for reference and information too below.

2020-11-11T15:31:58.6531564Z Task : Visual Studio build
2020-11-11T15:31:58.6531899Z Description : Build with MSBuild and set the Visual Studio version property
2020-11-11T15:31:58.6532222Z Version : 1.166.27_Build solution.txt (1.2 MB)

@mickaelcaro Let me know if the above information is helpful or any additional information is required.

@mickaelcaro attached logs in the previous conversation, could you please assist us on this topic.

Hi @Phaneendra_kotha

I pinged one of my colleague to help you on that, sorry for the late answer.

Mickaël

@Phaneendra_kotha,

Your build log has dozens of warnings like the following:

Essentially, it means the analyzers couldn’t be run because the version of the Microsoft CodeAnalysis assemblies (i.e. Roslyn) being used by the compiler is too old. That’s surprising because you seem to be using the Visual Studio 2017 build task, and VS 2017 shipped with Roslyn v2.0.

However, if we look at the version of the compiler that is being invoked during your build, it’s actually using Roslyn version 1.0:

My guess is that your project has a reference to v1.0 of the Microsoft.Net.Compilers NuGet package, so that’s version that being used during the build -> the analyzers won’t work.

It’s not normally necessary to reference the Microsoft.Net.Compilers NuGet package directly; MSBuild and the C# compiler are backwards compatible, so newer versions of the compiler tools can be used to build old code that targets an older version of the framework.

If you do need to reference the Microsoft.Net.Compilers package directly and want to use the SonarC# analysis rules then you will need to change your package to reference to point to at least v1.3.2 of the Microsoft.Net.Compilers.

3 Likes