Problem with importing code coverage for a .NET project

in output what you mention it

Hi Mike
when i try to convert code coverage report from binary into xml at that time I run this command
C:\Program Files (x86)\Microsoft VisualStudio\2019\Enterprise\Common7\IDE\Extensions\TestPlatform>vstest.console.exe /EnableCodeCoverage"C:\Sonar\DemoProject\DemoProjectTest\bin\Debug\DemoProjectTest.dll"
I got output like that

after that I used this command codecoverage.exe collect to generate the code coverage

but i did not got code coverage could you help me out this is my sonar -properties file

#sonar.java.command=/path/to/my/jdk/bin/java

sonar.java.command=C:/jdk-11.0.5/bin/java

sonar.projectKey=DemoProject2

sonar.projectName=DemoProject2

sonar.projectVersion=1.0

sonar.ProjectBasedir=C:\Sonar\DemoProject

#sonar.verbose=true

#sonar.cs.roslyn.ignoreIssues=true

#sonar.cs.roslyn.codeSmellCategories=true

#sonar.exclusions=/assets/,/js/,/css/*

Enable the Visual Studio bootstrapper

sonar.visualstudio.enable=true

sonar.language=cs

#sonar.sonar=/s:"$(pwd)/SonarQube.Analysis.xml"

#sonar.sources=C:\Users\vikash.kumar1\Documents\Visual Studio 2015\Projects\CompShop\CompShop.sln

#sonar.analysis.mode=preview

sonar.issuesReport.html.enable=true

#sonar.cs.nunit.reportsPaths=report.coveragexml

#sonar.testExecutionReportPaths=C:\Sonar\DemoProject\TestResults\76ddace0-a637-47c8-bf41-f9c080bed9e2\vikash.kumar1_WKSBAN18TR6131 2020-01-28 14_35_47.coverage

#sonar.cs.vscoveragexml.reportsPaths=MyWebApp.coverage

#sonar.cs.vscoveragexml.reportsPaths=**/*.coveragexml

#sonar.cs.vstest.reportsPaths=…/TestResults/Mytest.trx

sonar.cs.vscoveragexml.reportsPaths=C:\Sonar\DemoProject\TestResults\vikash.kumar1_WKSBAN18TR6131 2020-01-29 16_45_24.coveragexml

This is my sonarqube page

this is my last sonar-scanner MsBulid.exe end file

C:\Sonar\sonar-scanner-msbuild-4.6.2.2108-net46>SonarScanner.MSBuild.exe end
SonarScanner for MSBuild 4.6.2
Using the .NET Framework version of the Scanner for MSBuild
Default properties file was found at C:\Sonar\sonar-scanner-msbuild-4.6.2.2108-net46\SonarQube.Analysis.xml
Loading analysis properties from C:\Sonar\sonar-scanner-msbuild-4.6.2.2108-net46\SonarQube.Analysis.xml
sonar.verbose=true was specified - setting the log verbosity to ‘Debug’
Post-processing started.
11:12:21.614 Using environment variables to determine the download directory…
11:12:21.804 11:12:21.732 Uninstalling target: C:\Users\vikash.kumar1\AppData\Local\Microsoft\MSBuild\4.0\Microsoft.Common.targets\ImportBefore\SonarQube.Integration.ImportBefore.targets
11:12:21.808 11:12:21.736 Uninstalling target: C:\Users\vikash.kumar1\AppData\Local\Microsoft\MSBuild\10.0\Microsoft.Common.targets\ImportBefore\SonarQube.Integration.ImportBefore.targets
11:12:21.809 11:12:21.74 Uninstalling target: C:\Users\vikash.kumar1\AppData\Local\Microsoft\MSBuild\11.0\Microsoft.Common.targets\ImportBefore\SonarQube.Integration.ImportBefore.targets
11:12:21.811 11:12:21.744 Uninstalling target: C:\Users\vikash.kumar1\AppData\Local\Microsoft\MSBuild\12.0\Microsoft.Common.targets\ImportBefore\SonarQube.Integration.ImportBefore.targets
11:12:21.812 11:12:21.77 Uninstalling target: C:\Users\vikash.kumar1\AppData\Local\Microsoft\MSBuild\14.0\Microsoft.Common.targets\ImportBefore\SonarQube.Integration.ImportBefore.targets
11:12:21.812 11:12:21.782 Uninstalling target: C:\Users\vikash.kumar1\AppData\Local\Microsoft\MSBuild\15.0\Microsoft.Common.targets\ImportBefore\SonarQube.Integration.ImportBefore.targets
11:12:21.813 11:12:21.792 Uninstalling target: C:\Users\vikash.kumar1\AppData\Local\Microsoft\MSBuild\Current\Microsoft.Common.targets\ImportBefore\SonarQube.Integration.ImportBefore.targets
11:12:21.814 11:12:21.804 sonar.verbose=true was specified - setting the log verbosity to ‘Debug’
11:12:21.816 Loading the SonarQube analysis config from C:\Sonar\sonar-scanner-msbuild-4.6.2.2108-net46.sonarqube\conf\SonarQubeAnalysisConfig.xml
11:12:21.82 Not running under TeamBuild
11:12:21.822 Analysis base directory: C:\Sonar\sonar-scanner-msbuild-4.6.2.2108-net46.sonarqube
Build directory:
Bin directory: C:\Sonar\sonar-scanner-msbuild-4.6.2.2108-net46.sonarqube\bin
Config directory: C:\Sonar\sonar-scanner-msbuild-4.6.2.2108-net46.sonarqube\conf
Output directory: C:\Sonar\sonar-scanner-msbuild-4.6.2.2108-net46.sonarqube\out
Config file: C:\Sonar\sonar-scanner-msbuild-4.6.2.2108-net46.sonarqube\conf\SonarQubeAnalysisConfig.xml
Generating SonarQube project properties file to C:\Sonar\sonar-scanner-msbuild-4.6.2.2108-net46.sonarqube\out\sonar-project.properties
Setting analysis property: sonar.visualstudio.enable=false
The supplied Code Analysis ErrorLog file is a valid json file and does not need to be fixed: C:\Sonar\DemoProject\DemoProject\bin\Debug\DemoProject.exe.RoslynCA.json
The supplied Code Analysis ErrorLog file is a valid json file and does not need to be fixed: C:\Sonar\DemoProject\DemoProject\bin\Debug\DemoProject.exe.RoslynCA.json
Using longest common projects root path as project base directory: ‘C:\Sonar\DemoProject\DemoProject’.
Dumping content of sonar-project.properties

sonar.projectKey=DemoProject2
sonar.projectName=DemoProject2/v:1.0
sonar.working.directory=C:\Sonar\sonar-scanner-msbuild-4.6.2.2108-net46\.sonarqube\out\.sonar
sonar.projectBaseDir=C:\Sonar\DemoProject\DemoProject

1B857D85-5A57-476B-82CC-5EDE29121442.sonar.projectKey=DemoProject2:1B857D85-5A57-476B-82CC-5EDE29121442
1B857D85-5A57-476B-82CC-5EDE29121442.sonar.projectName=DemoProject
1B857D85-5A57-476B-82CC-5EDE29121442.sonar.projectBaseDir=C:\Sonar\DemoProject\DemoProject
1B857D85-5A57-476B-82CC-5EDE29121442.sonar.sourceEncoding=utf-8
1B857D85-5A57-476B-82CC-5EDE29121442.sonar.sources=
“C:\Sonar\DemoProject\DemoProject\Banking.cs”,
“C:\Sonar\DemoProject\DemoProject\DemoTestModel.cs”,
“C:\Sonar\DemoProject\DemoProject\EmployeeDetails.cs”,
“C:\Sonar\DemoProject\DemoProject\Program.cs”,
“C:\Sonar\DemoProject\DemoProject\Properties\AssemblyInfo.cs”,
“C:\Sonar\DemoProject\DemoProject\App.config”,
“C:\Sonar\DemoProject\DemoProject\packages.config”,
“C:\Sonar\DemoProject\DemoProject\Properties\app.manifest”

1B857D85-5A57-476B-82CC-5EDE29121442.sonar.cs.roslyn.reportFilePath=C:\Sonar\DemoProject\DemoProject\bin\Debug\DemoProject.exe.RoslynCA.json
1B857D85-5A57-476B-82CC-5EDE29121442.sonar.cs.analyzer.projectOutPath=C:\Sonar\sonar-scanner-msbuild-4.6.2.2108-net46\.sonarqube\out\0
1B857D85-5A57-476B-82CC-5EDE29121442.sonar.cs.analyzer.projectOutPaths=
“C:\Sonar\sonar-scanner-msbuild-4.6.2.2108-net46\.sonarqube\out\0”
1B857D85-5A57-476B-82CC-5EDE29121442.sonar.cs.roslyn.reportFilePaths=
“C:\Sonar\DemoProject\DemoProject\bin\Debug\DemoProject.exe.RoslynCA.json”

1B857D85-5A57-476B-82CC-5EDE29121442.sonar.working.directory=C:\Sonar\sonar-scanner-msbuild-4.6.2.2108-net46\.sonarqube\out\.sonar\mod0
sonar.cs.vscoveragexml.reportsPaths=C:\Sonar\DemoProject\TestResults\CoverageReport\MyWebApp.coverage
sonar.host.url=http://localhost:9000
sonar.exclusions=/wwwroot/, /obj/, /bin/
sonar.user=admin
sonar.visualstudio.enable=false

sonar.modules=1B857D85-5A57-476B-82CC-5EDE29121442


Writing processing summary to C:\Sonar\sonar-scanner-msbuild-4.6.2.2108-net46.sonarqube\out\ProjectInfo.log
Calling the SonarQube Scanner…
Executing file C:\Sonar\sonar-scanner-msbuild-4.6.2.2108-net46\sonar-scanner-3.3.0.1492\bin\sonar-scanner.bat
Args: -Dsonar.scanAllFiles=true -Dproject.settings=C:\Sonar\sonar-scanner-msbuild-4.6.2.2108-net46.sonarqube\out\sonar-project.properties --embedded --debug
Working directory: C:\Sonar\sonar-scanner-msbuild-4.6.2.2108-net46
Timeout (ms):-1
Process id: 13428
11:12:25.881 INFO: Scanner configuration file: C:\Sonar\sonar-scanner-msbuild-4.6.2.2108-net46\sonar-scanner-3.3.0.1492\bin…\conf\sonar-scanner.properties
11:12:25.887 INFO: Project root configuration file: C:\Sonar\sonar-scanner-msbuild-4.6.2.2108-net46.sonarqube\out\sonar-project.properties
11:12:25.922 INFO: SonarQube Scanner 3.3.0.1492

11:12:26.482 INFO: Default locale: “en_US”, source code encoding: “UTF-8”
11:12:26.483 DEBUG: Work directory: C:\Sonar\sonar-scanner-msbuild-4.6.2.2108-net46.sonarqube\out.sonar
11:12:26.485 DEBUG: Execution execute
11:12:26.783 DEBUG: Community 8.0.0.29455
11:12:26.878 INFO: Load global settings
11:12:26.922 DEBUG: GET 200 http://localhost:9000/api/settings/values.protobuf | time=42ms
11:12:26.956 INFO: Load global settings (done) | time=78ms
11:12:26.958 INFO: Server id: BF41A1F2-AW7PSQS5Qv_jZmBGkhoT
11:12:26.962 INFO: User cache: C:\Users\vikash.kumar1.sonar\cache
11:12:26.968 INFO: Load/download plugins
11:12:26.969 INFO: Load plugins index
11:12:26.993 DEBUG: GET 200 http://localhost:9000/api/plugins/installed | time=24ms
11:12:27.036 INFO: Load plugins index (done) | time=67ms
11:12:27.145 INFO: Load/download plugins (done) | time=177ms
11:12:27.345 DEBUG: Plugins:
11:12:27.345 DEBUG: * SonarPython 1.16.0.4432 (python)
11:12:27.345 DEBUG: * SonarCSS 1.1.1.1010 (cssfamily)
11:12:27.345 DEBUG: * JaCoCo 1.0.2.475 (jacoco)
11:12:27.345 DEBUG: * SonarGo 1.6.0.719 (go)
11:12:27.346 DEBUG: * SonarKotlin 1.5.0.315 (kotlin)
11:12:27.346 DEBUG: * Svn 1.9.0.1295 (scmsvn)
11:12:27.346 DEBUG: * SonarJS 5.2.1.7778 (javascript)
11:12:27.346 DEBUG: * SonarRuby 1.5.0.315 (ruby)
11:12:27.346 DEBUG: * SonarScala 1.5.0.315 (sonarscala)
11:12:27.346 DEBUG: * SonarC# 7.17.0.9346 (csharp)
11:12:27.346 DEBUG: * SonarJava 5.14.0.18788 (java)
11:12:27.346 DEBUG: * SonarHTML 3.2.0.2082 (web)
11:12:27.347 DEBUG: * Git 1.9.1.1834 (scmgit)
11:12:27.347 DEBUG: * SonarFlex 2.5.1.1831 (flex)
11:12:27.347 DEBUG: * SonarXML 2.0.1.2020 (xml)
11:12:27.347 DEBUG: * SonarPHP 3.2.0.4868 (php)
11:12:27.347 DEBUG: * SonarTS 1.9.0.3766 (typescript)
11:12:27.347 DEBUG: * SonarVB 7.17.0.9346 (vbnet)
11:12:28.493 INFO: Process project properties
11:12:28.506 INFO: Process project properties (done) | time=13ms
11:12:28.507 INFO: Execute project builders
11:12:28.509 DEBUG: Execute project builder: org.sonar.plugins.csharp.CSharpGlobalProtobufFileProcessor
11:12:28.524 DEBUG: Processing C:\Sonar\sonar-scanner-msbuild-4.6.2.2108-net46.sonarqube\out\0\output-cs\file-metadata.pb
11:12:28.584 DEBUG: Execute project builder: org.sonar.plugins.vbnet.VbNetGlobalProtobufFileProcessor
11:12:28.586 INFO: Execute project builders (done) | time=79ms
11:12:28.605 INFO: Project key: DemoProject2
11:12:28.606 INFO: Base dir: C:\Sonar\DemoProject\DemoProject
11:12:28.606 INFO: Working dir: C:\Sonar\sonar-scanner-msbuild-4.6.2.2108-net46.sonarqube\out.sonar
11:12:28.606 DEBUG: Project global encoding: UTF-8, default locale: en_US
11:12:28.619 DEBUG: Creating module hierarchy
11:12:28.620 DEBUG: Init module ‘DemoProject2/v:1.0’
11:12:28.622 DEBUG: Base dir: C:\Sonar\DemoProject\DemoProject
11:12:28.622 DEBUG: Working dir: C:\Sonar\sonar-scanner-msbuild-4.6.2.2108-net46.sonarqube\out.sonar
11:12:28.623 DEBUG: Module global encoding: UTF-8, default locale: en_US
11:12:28.623 DEBUG: Init module ‘DemoProject’
11:12:28.626 DEBUG: Base dir: C:\Sonar\DemoProject\DemoProject
11:12:28.626 DEBUG: Working dir: C:\Sonar\sonar-scanner-msbuild-4.6.2.2108-net46.sonarqube\out.sonar\mod0
11:12:28.626 DEBUG: Module global encoding: UTF-8, default locale: en_US
11:12:28.641 INFO: Load project settings for component key: ‘DemoProject2’
11:12:28.673 DEBUG: GET 200 http://localhost:9000/api/settings/values.protobuf?component=DemoProject2 | time=32ms
11:12:28.674 INFO: Load project settings for component key: ‘DemoProject2’ (done) | time=33ms
11:12:28.705 DEBUG: Available languages:
11:12verity,lang,internalKey,templateKey,params,actives,createdAt,updatedAt&activation=true&qprofile=AW7PSb80Qv_jZmBGkjmn&ps=500&p=1 | time=172ms
11:12:31.438 DEBUG: GET 200 http://localhost:9000/api/rules/search.protobuf?f=repo,name,severity,lang,internalKey,templateKey,params,actives,createdAt,updatedAt&activation=true&qprofile=AW7PScJOQv_jZmBGkjrJ&ps=500&p=1 | time=151ms
11:12:31.526 DEBUG: GET 200 http://localhost:9000/api/rules/search.protobuf?f=repo,name,severity,lang,internalKey,templateKey,params,actives,createdAt,updatedAt&activation=true&qprofile=AW7PScNcQv_jZmBGkjtm&ps=500&p=1 | time=83ms
11:12:31.544 INFO: Load active rules (done) | time=2724ms
11:12:31.549 DEBUG: SCM Step is disabled by configuration
11:12:31.652 DEBUG: Declared extensions of language Python were converted to sonar.lang.patterns.py : /.py
11:12:31.652 DEBUG: Declared extensions of language CSS were converted to sonar.lang.patterns.css : **/
.css,
/.less,**/.scss
11:12:31.652 DEBUG: Declared extensions of language Go were converted to sonar.lang.patterns.go : /.go
11:12:31.653 DEBUG: Declared extensions of language Kotlin were converted to sonar.lang.patterns.kotlin : **/
.kt
11:12:31.653 DEBUG: Declared extensions of language JavaScript were converted to sonar.lang.patterns.js : /*.js,/*.jsx,
/.vue
11:12:31.653 DEBUG: Declared extensions of language Ruby were converted to sonar.lang.patterns.ruby : **/
.rb
11:12:31.653 DEBUG: Declared extensions of language Scala were converted to sonar.lang.patterns.scala : /.scala
11:12:31.653 DEBUG: Declared extensions of language C# were converted to sonar.lang.patterns.cs : **/
.cs
11:12:31.653 DEBUG: Declared extensions of language Java were converted to sonar.lang.patterns.java : /*.java,/.jav
11:12:31.654 DEBUG: Declared extensions of language HTML were converted to sonar.lang.patterns.web : **/
.html,
/.xhtml,**/.cshtml,/*.vbhtml,/.aspx,**/.ascx,/*.rhtml,/.erb,**/.shtm,/.shtml
11:12:31.654 DEBUG: Declared extensions of language JSP were converted to sonar.lang.patterns.jsp : **/
.jsp,
/.jspf,**/.jspx
11:12:31.654 DEBUG: Declared extensions of language Flex were converted to sonar.lang.patterns.flex : /.as
11:12:31.654 DEBUG: Declared extensions of language XML were converted to sonar.lang.patterns.xml : **/
.xml,
/.xsd,**/.xsl
11:12:31.655 DEBUG: Declared extensions of language PHP were converted to sonar.lang.patterns.php : /*.php,/.php3,**/.php4,/*.php5,/.phtml,**/.inc
11:12:31.655 DEBUG: Declared extensions of language TypeScript were converted to sonar.lang.patterns.ts : /*.ts,/.tsx
11:12:31.655 DEBUG: Declared extensions of language VB.NET were converted to sonar.lang.patterns.vbnet : **/
.vb
11:12:31.658 DEBUG: Will analyze generated code
11:12:31.661 DEBUG: Will ignore generated code
11:12:31.662 INFO: Indexing files…
11:12:31.662 INFO: Project configuration:
11:12:31.663 INFO: Excluded sources: /wwwroot/, /obj/, /bin/
11:12:31.670 INFO: Indexing files of module ‘DemoProject’
11:12:31.670 INFO: Base dir: C:\Sonar\DemoProject\DemoProject
11:12:31.683 DEBUG: Source paths: Banking.cs, DemoTestModel.cs, EmployeeDetails.cs, Program.cs, Properties/AssemblyInfo.cs, App.config, packages.config, Properties/app.manifest
11:12:31.684 INFO: Excluded sources: /wwwroot/, /obj/, /bin/
11:12:31.727 INFO: Load project repositories
11:12:31.972 DEBUG: GET 200 http://localhost:9000/batch/project.protobuf?key=DemoProject2 | time=244ms
11:12:32.020 INFO: Load project repositories (done) | time=293ms
11:12:32.021 DEBUG: ‘Banking.cs’ generated metadata with charset ‘UTF-8’
11:12:32.025 DEBUG: ‘Banking.cs’ indexed with language ‘cs’
11:12:32.030 DEBUG: ‘DemoTestModel.cs’ generated metadata with charset ‘UTF-8’
11:12:32.030 DEBUG: ‘DemoTestModel.cs’ indexed with language ‘cs’
11:12:32.037 DEBUG: ‘EmployeeDetails.cs’ generated metadata with charset ‘UTF-8’
11:12:32.037 DEBUG: ‘EmployeeDetails.cs’ indexed with language ‘cs’
11:12:32.054 DEBUG: ‘Program.cs’ generated metadata with charset ‘UTF-8’
11:12:32.055 DEBUG: ‘Program.cs’ indexed with language ‘cs’
11:12:32.070 DEBUG: ‘Properties/AssemblyInfo.cs’ generated metadata with charset ‘UTF-8’
11:12:32.070 DEBUG: ‘Properties\AssemblyInfo.cs’ indexed with language ‘cs’
11:12:32.072 DEBUG: ‘App.config’ indexed with language ‘null’
11:12:32.074 DEBUG: ‘packages.config’ indexed with language ‘null’
11:12:32.078 DEBUG: ‘Properties\app.manifest’ indexed with language ‘null’
11:12:32.080 INFO: Indexing files of module ‘DemoProject2/v:1.0’
11:12:32.080 INFO: Base dir: C:\Sonar\DemoProject\DemoProject
11:12:32.080 INFO: Excluded sources: /wwwroot/, /obj/, /bin/
11:12:32.081 INFO: 8 files indexed
11:12:32.081 INFO: 0 files ignored because of inclusion/exclusion patterns
11:12:32.082 INFO: Quality profile for cs: Sonar way
11:12:32.083 INFO: ------------- Run sensors on module DemoProject
11:12:32.536 INFO: Load metrics repository
11:12:32.595 DEBUG: GET 200 http://localhost:9000/api/metrics/search?f=name,description,direction,qualitative,custom&ps=500&p=1 | time=59ms
11:12:32.607 INFO: Load metrics repository (done) | time=71ms
WARNING: WARNING: An illegal reflective access operation has occurred
WARNING: WARNING: Illegal reflective access by net.sf.cglib.core.ReflectUtils$1 (file:/C:/Users/vikash.kumar1/.sonar/cache/866bb1adbf016ea515620f1aaa15ec53/sonar-javascript-plugin.jar) to method java.lang.ClassLoader.defineClass(java.lang.String,byte,int,int,java.security.ProtectionDomain)
WARNING: WARNING: Please consider reporting this to the maintainers of net.sf.cglib.core.ReflectUtils$1
WARNING: WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations
WARNING: WARNING: All illegal access operations will be denied in a future release
11:12:34.594 DEBUG: ‘JavaSquidSensor’ skipped because there is no related file in current project
11:12:34.597 DEBUG: ‘Import external issues report’ skipped because one of the required properties is missing
11:12:34.600 DEBUG: ‘Python Squid Sensor’ skipped because there is no related file in current project
11:12:34.602 DEBUG: ‘Cobertura Sensor for Python coverage’ skipped because there is no related file in current project
11:12:34.605 DEBUG: ‘PythonXUnitSensor’ skipped because there is no related file in current project
11:12:34.605 DEBUG: ‘PylintSensor’ skipped because there is no related file in current project
11:12:34.606 DEBUG: ‘PylintImportSensor’ skipped because there is no related file in current project
11:12:34.607 DEBUG: ‘Import of Bandit issues’ skipped because there is no related file in current project
11:12:34.607 DEBUG: ‘SonarCSS Metrics’ skipped because there is no related file in current project
11:12:34.607 DEBUG: ‘SonarCSS Rules’ skipped because there is no related file in current project
11:12:34.608 DEBUG: ‘Import of stylelint issues’ skipped because there is no related file in current project
11:12:34.608 DEBUG: ‘SonarGo’ skipped because there is no related file in current project
11:12:34.609 DEBUG: ‘Go Unit Test Report’ skipped because there is no related file in current project
11:12:34.610 DEBUG: ‘Go Cover sensor for Go coverage’ skipped because one of the required properties is missing
11:12:34.611 DEBUG: ‘Import of go vet issues’ skipped because there is no related file in current project
11:12:34.612 DEBUG: ‘Import of Golint issues’ skipped because there is no related file in current project
11:12:34.612 DEBUG: ‘Import of GoMetaLinter issues’ skipped because there is no related file in current project
11:12:34.614 DEBUG: ‘Import of GolangCI-Lint issues’ skipped because there is no related file in current project
11:12:34.614 DEBUG: ‘Kotlin Sensor’ skipped because there is no related file in current project
11:12:34.615 DEBUG: ‘Import of detekt issues’ skipped because there is no related file in current project
11:12:34.616 DEBUG: ‘Import of Android Lint issues’ skipped because one of the required properties is missing
11:12:34.616 DEBUG: ‘SonarJS’ skipped because there is no related file in current project
11:12:34.616 DEBUG: ‘ESLint-based SonarJS’ skipped because there is no related file in current project
1d file in current project
11:12:34.631 DEBUG: ‘Import of Scapegoat issues’ skipped because there is no related file in current project
11:12:34.638 DEBUG: ‘Import of Checkstyle issues’ skipped because there is no related file in current project
11:12:34.638 DEBUG: ‘Import of PMD issues’ skipped because one of the required properties is missing
11:12:34.639 DEBUG: ‘Import of SpotBugs issues’ skipped because there is no related file in current project
11:12:34.639 DEBUG: ‘SurefireSensor’ skipped because there is no related file in current project
11:12:34.640 DEBUG: ‘JaCoCoSensor’ skipped because there is no related file in current project
11:12:34.642 DEBUG: ‘Flex’ skipped because there is no related file in current project
11:12:34.642 DEBUG: ‘Flex Cobertura’ skipped because there is no related file in current project
11:12:34.642 DEBUG: ‘XML Sensor’ skipped because there is no related file in current project
11:12:34.643 DEBUG: ‘PHP sensor’ skipped because there is no related file in current project
11:12:34.643 DEBUG: ‘Analyzer for “php.ini” files’ skipped because there is no related file in current project
11:12:34.643 DEBUG: ‘SonarTS’ skipped because there is no related file in current project
11:12:34.644 DEBUG: ‘SonarTS Coverage’ skipped because there is no related file in current project
11:12:34.645 DEBUG: ‘Import of TSLint issues’ skipped because one of the required properties is missing
11:12:34.648 DEBUG: ‘VB.NET Properties’ skipped because there is no related file in current project
11:12:34.650 DEBUG: Sensors : JaCoCo XML Report Importer -> C# Properties -> JavaXmlSensor -> HTML
11:12:34.650 INFO: Sensor JaCoCo XML Report Importer [jacoco]
11:12:34.654 DEBUG: No reports found
11:12:34.654 INFO: Sensor JaCoCo XML Report Importer [jacoco] (done) | time=4ms
11:12:34.654 INFO: Sensor C# Properties [csharp]
11:12:34.673 DEBUG: Analyzer working directory ‘C:\Sonar\sonar-scanner-msbuild-4.6.2.2108-net46.sonarqube\out\0\output-cs’ contains 5 .pb file(s)
11:12:34.673 DEBUG: Found Roslyn issues report
11:12:34.674 INFO: Sensor C# Properties [csharp] (done) | time=20ms
11:12:34.674 INFO: Sensor JavaXmlSensor [java]
11:12:34.676 INFO: Sensor JavaXmlSensor [java] (done) | time=2ms
11:12:34.677 INFO: Sensor HTML [web]
11:12:34.681 INFO: Sensor HTML [web] (done) | time=4ms
11:12:34.719 INFO: ------------- Run sensors on module DemoProject2/v:1.0
11:12:34.780 DEBUG: ‘JavaSquidSensor’ skipped because there is no related file in current project
11:12:34.780 DEBUG: ‘Import external issues report’ skipped because one of the required properties is missing
11:12:34.780 DEBUG: ‘Python Squid Sensor’ skipped because there is no related file in current project
11:12:34.780 DEBUG: ‘Cobertura Sensor for Python coverage’ skipped because there is no related file in current project
11:12:34.780 DEBUG: ‘PythonXUnitSensor’ skipped because there is no related file in current project
11:12:34.781 DEBUG: ‘PylintSensor’ skipped because there is no related file in current project
11:12:34.781 DEBUG: ‘PylintImportSensor’ skipped because there is no related file in current project
11:12:34.781 DEBUG: ‘Import of Bandit issues’ skipped because there is no related file in current project
11:12:34.782 DEBUG: ‘SonarCSS Metrics’ skipped because there is no related file in current project
11:12:34.782 DEBUG: ‘SonarCSS Rules’ skipped because there is no related file in current project
11:12:34.782 DEBUG: ‘Import of stylelint issues’ skipped because there is no related file in current project
11:12:34.782 DEBUG: ‘SonarGo’ skipped because there is no related file in current project
11:12:34.782 DEBUG: ‘Go Unit Test Report’ skipped because there is no related file in current project
11:12:34.782 DEBUG: ‘Go Cover sensor for Go coverage’ skipped because one of the required properties is missing
11:12:34.782 DEBUG: ‘Import of go vet issues’ skipped because there is no related file in current project
11:12:34.782 DEBUG: ‘Import of Golint issues’ skipped because there is no related file in current project
11:12:34.782 DEBUG: ‘Import of GoMetaLinter issues’ skipped because there is no related file in current project
11:12:34.782 DEBUG: ‘Import of GolangCI-Lint issues’ skipped because there is no related file in current project
11:12:34.782 DEBUG: ‘Kotlin Sensor’ skipped because there is no related file in current project
11:12:34.782 DEBUG: ‘Import of detekt issues’ skipped because there is no related file in current project
11:12:34.850 DEBUG: ‘Import of Android Lint issues’ skipped because one of the required properties is missing
11:12:34.850 DEBUG: ‘SonarJS’ skipped because there is no related file in current project
11:12:34.850 DEBUG: ‘ESLint-based SonarJS’ skipped because there is no related file in current project
11:12:34.850 DEBUG: ‘SonarJS Coverage’ skipped because there is no related file in current project
11:12:34.850 DEBUG: ‘Import of ESLint issues’ skipped because one of the required properties is missing
11:12:34.850 DEBUG: ‘Ruby Sensor’ skipped because there is no related file in current project
11:12:34.851 DEBUG: ‘Import of RuboCop issues’ skipped because one of the required properties is missing
11:12:34.851 DEBUG: ‘SimpleCov Sensor for Ruby coverage’ skipped because there is no related file in current project
11:12:34.851 DEBUG: ‘Scala Sensor’ skipped because there is no related file in current project
11:12:34.851 DEBUG: ‘Scoverage sensor for Scala coverage’ skipped because one of the required properties is missing
11:12:34.867 DEBUG: ‘Import of Scalastyle issues’ skipped because there is no related file in current project
11:12:34.867 DEBUG: ‘Import of Scapegoat issues’ skipped because there is no related file in current project
11:12:34.867 DEBUG: ‘C# Properties’ skipped because there is no related file in current project
11:12:34.868 DEBUG: ‘Import of Checkstyle issues’ skipped because there is no related file in current project
11:12:34.868 DEBUG: ‘Import of PMD issues’ skipped because one of the required properties is missing
11:12:34.868 DEBUG: ‘Import of SpotBugs issues’ skipped because there is no related file in current project
11:12:34.868 DEBUG: ‘SurefireSensor’ skipped because there is no related file in current project
11:12:34.868 DEBUG: ‘JaCoCoSensor’ skipped because there is no related file in current project
11:12:34.868 DEBUG: ‘HTML’ skipped because there is no related file in current project
11:12:34.868 DEBUG: ‘Flex’ skipped because there is no related file in current project
11:12:34.886 DEBUG: ‘Flex Cobertura’ skipped because there is no related file in current project
11:12:34.886 DEBUG: ‘XML Sensor’ skipped because there is no related file in current project
11:12:34.886 DEBUG: ‘PHP sensor’ skipped because there is no related file in current project
11:12:34.886 DEBUG: ‘Analyzer for “php.ini” files’ skipped because there is no related file in current project

11:12:34.921 DEBUG: Sensors : JaCoCo XML Report Importer -> JavaXmlSensor -> C# -> C# Tests Coverage Report Import
11:12:34.921 INFO: Sensor JaCoCo XML Report Importer [jacoco]
11:12:34.921 DEBUG: No reports found
11:12:34.921 INFO: Sensor JaCoCo XML Report Importer [jacoco] (done) | time=0ms
11:12:34.942 INFO: Sensor JavaXmlSensor [java]
11:12:34.942 INFO: Sensor JavaXmlSensor [java] (done) | time=0ms
11:12:34.942 INFO: Sensor C# [csharp]
11:12:34.958 INFO: Importing results from 5 proto files in ‘C:\Sonar\sonar-scanner-msbuild-4.6.2.2108-net46.sonarqube\out\0\output-cs’
11:12:35.237 WARN: File ‘C:\Users\vikash.kumar1\AppData\Local\Temp.NETFramework,Version=v4.5.2.AssemblyAttributes.cs’ referenced by the protobuf ‘MetricsInfo’ does not exist in the analysis context
11:12:35.353 WARN: File ‘C:\Users\vikash.kumar1\AppData\Local\Temp.NETFramework,Version=v4.5.2.AssemblyAttributes.cs’ referenced by the protobuf ‘TokenTypeInfo’ does not exist in the analysis context
11:12:35.366 WARN: File ‘C:\Users\vikash.kumar1\AppData\Local\Temp.NETFramework,Version=v4.5.2.AssemblyAttributes.cs’ referenced by the protobuf ‘SymbolReferenceInfo’ does not exist in the analysis context
11:12:35.467 DEBUG: Not enough content in ‘DemoTestModel.cs’ to have CPD blocks, it will not be part of the duplication detection
11:12:35.486 WARN: File ‘C:\Users\vikash.kumar1\AppData\Local\Temp.NETFramework,Version=v4.5.2.AssemblyAttributes.cs’ referenced by the protobuf ‘CopyPasteTokenInfo’ does not exist in the analysis context
11:12:35.549 INFO: Importing 1 Roslyn report
11:12:35.664 INFO: Sensor C# [csharp] (done) | time=722ms
11:12:35.664 INFO: Sensor C# Tests Coverage Report Import [csharp]
11:12:35.669 INFO: Parsing the Visual Studio coverage XML report C:\Sonar\DemoProject\TestResults\CoverageReport\MyWebApp.coverage
11:12:35.702 WARN: Unable to get next XML event while parsing file ‘C:\Sonar\DemoProject\TestResults\CoverageReport\MyWebApp.coverage’
11:12:35.703 WARN: Could not import coverage report ‘C:\Sonar\DemoProject\TestResults\CoverageReport\MyWebApp.coverage’ because ‘Error while parsing the XML file: C:\Sonar\DemoProject\TestResults\CoverageReport\MyWebApp.coverage’
11:12:35.704 INFO: Sensor C# Tests Coverage Report Import [csharp] (done) | time=40ms
11:12:35.704 INFO: ------------- Run sensors on project
11:12:35.709 DEBUG: ‘Java CPD Block Indexer’ skipped because there is no related file in current project
11:12:35.710 DEBUG: Sensors : Zero Coverage Sensor
11:12:35.711 INFO: Sensor Zero Coverage Sensor
11:12:35.768 INFO: Sensor Zero Coverage Sensor (done) | time=57ms
11:12:35.772 INFO: SCM Publisher is disabled
11:12:35.778 INFO: CPD Executor 1 file had no CPD blocks
11:12:35.778 INFO: CPD Executor Calculating CPD for 4 files
11:12:35.779 DEBUG: Detection of duplications for C:/Sonar/DemoProject/DemoProject/EmployeeDetails.cs
11:12:35.802 DEBUG: Detection of duplications for C:/Sonar/DemoProject/DemoProject/Program.cs
11:12:35.817 DEBUG: Detection of duplications for C:/Sonar/DemoProject/DemoProject/Properties/AssemblyInfo.cs
11:12:35.823 DEBUG: Detection of duplications for C:/Sonar/DemoProject/DemoProject/Banking.cs
11:12:35.826 INFO: CPD Executor CPD calculation finished (done) | time=47ms
11:12:35.949 INFO: Analysis report generated in 111ms, dir size=97 KB
11:12:36.030 INFO: Analysis report compressed in 81ms, zip size=24 KB
11:12:36.031 INFO: Analysis report generated in C:\Sonar\sonar-scanner-msbuild-4.6.2.2108-net46.sonarqube\out.sonar\scanner-report
11:12:36.031 DEBUG: Upload report
11:12:36.167 DEBUG: POST 200 http://localhost:9000/api/ce/submit?projectKey=DemoProject2&projectName=DemoProject2%2Fv%3A1.0 | time=134ms
11:12:36.186 INFO: Analysis report uploaded in 155ms
11:12:36.187 INFO: ANALYSIS SUCCESSFUL, you can browse http://localhost:9000/dashboard?id=DemoProject2
11:12:36.188 INFO: Note that you will be able to access the updated dashboard once the server has processed the submitted analysis report
11:12:36.188 INFO: More about the report processing at http://localhost:9000/api/ce/task?id=AW_6H1lDTuZg9wF75Ed_
11:12:36.191 DEBUG: Report metadata written to C:\Sonar\sonar-scanner-msbuild-4.6.2.2108-net46.sonarqube\out.sonar\report-task.txt
11:12:36.193 DEBUG: Post-jobs :
11:12:36.201 INFO: Analysis total time: 8.776 s
11:12:36.206 INFO: ------------------------------------------------------------------------
11:12:36.206 INFO: EXECUTION SUCCESS
11:12:36.206 INFO: ------------------------------------------------------------------------
11:12:36.206 INFO: Total time: 10.351s
11:12:36.243 INFO: Final Memory: 6M/30M
11:12:36.243 INFO: ------------------------------------------------------------------------

The SonarQube Scanner has finished
11:12:36.305 Post-processing succeeded.

Hi Mike Birnstieh
could you help me out actually i stuck last 2 days

Hi @vikash123

As far as I can tell the vstest.console.exe is trying to store the test results in C:\Program Files (x86)\Microsoft VisualStudio\2019\Enterprise\Common7\IDE\Extensions\TestPlatform and it seems that there is a problem with permissions.

Could you please try to change the work directory to C:\Sonar\DemoProject and start the vstest.console.exe from there?

Thank you,
Costin