Want to Exclude specific project from Code Coverage only and not from whole analysis

I know this issue has been discussed already , but nothing is working for me

I am trying to exclude the project from code coverage analysis.
I have tried the ways I found here but nothing is working for me
I tried sonar.coverage.exclusion and setting its value from .csproj, but it is not working for me

I have also tried using /p:Exclude thing in cmd file
this same thing is working on my local but not on server

Can anyone help me in this

I have followed the ways mentioned here but that is working for my local and not for server

Can anyone help me to resolve this issue

Thanks in advance

I found one solution ,

SonarQube.Scanner.MSBuild.exe" begin /d:sonar.coverage.exclusions=\MyLib1\MyPath1*,\MyLib2\MyPath2*

This works fine for SonarQube Version 6.7.1 but I am using SonarQube Version 7.7

hi @Jagruti

  • what is the version of the SQ Scanner for MSBuild you are using?
  • what is the version of MSBuild you are using?
  • what coverage code tool are you using?
  • what is the the verbose output of the END command (please run SonarScanner.MSBuild.exe begin /k:"MyProject" /d:sonar.verbose=true as the begin step, and please attach the output of END step)
  • what are the contents of the .sonarqube\out folder?
  • could you please share the .sonarqube\conf\SonarQubeAnalysisConfig.xml and the .sonarqube\conf\sonar-project.properties