SonarCloud Does not analyze tests projects is solution

I have a problem with Gitlab CI.I use it for ASP.NET MVC project.The solution structure is:

Project.Main
Project.Main.Test
Project.Lybraries
Project.Libraries.Test
.gitlab-ci.yml
.sonarcloud.properties

In sonar cloude code analyze → code I see only Project.Main, Project.Libraries
This is the .sonarcloud.properties content:
# Path to sources
sonar.sources=.
#sonar.exclusions=
#sonar.inclusions=

# Path to tests
sonar.tests=.
#sonar.test.exclusions=
sonar.test.inclusions=./Project.Main.Tests 

# Source encoding
sonar.sourceEncoding=UTF-8

# Exclusions for copy-paste detection
#sonar.cpd.exclusions=

Here is part of yml:
sonarcloud-check:
stage: sonarcloud-check
image:
name: sonarsource/sonar-scanner-cli:latest
entrypoint: [""]
cache:
key: “{CI_JOB_NAME}" paths: - .sonar/cache dependencies: - build - test script: - echo "{CI_JOB_NAME}”
- SonarScanner.MSBuild.exe begin /k:“project” /o:“organization” /d:sonar.verbose=true /d:sonar.host.url=“https://sonarcloud.io” /d:sonar.login=“d8b6500d75a8af6f7c3a3726a2b8782a39a439a7”
- nuget restore -ConfigFile .\nuget.config
- MsBuild.exe ./ /t:Rebuild
- SonarScanner.MSBuild.exe end /d:sonar.login=“d8b6500d75a8af6f7c3a3726a2b8782a39a439a7”

Hi @vladimir_petukhov

You can follow our dedicated wiki page on that, that will explain you why there are not analyzed.

HTH,
Mickaël