The SonarScanner for MSBuild integration failed: SonarQube was unable to collect the required information about your projects

Hi @vishnu_G

For case 1, have you check the error message ? You may have to check on your side of you have some exclusions / inclusions set to be sure that they do not overlap each other.

For case 2, you need to put the Prepare analysis configure task BEFORE the build solution, in order for the targets to be installed and detected in the subsequent build.

HTH,
Mickaël