SonarCloud cannot find project files in ADO upon pipeline execution

Error we are seeing (many of these):

  1. 20:02:09.791 20:02:09.791 WARNING: File ‘C:\a\1\test\application\Core2\applicationpackage\packages.config’ is not located under the base directory ‘C:\a\1\s’ and will not be analyzed.

##[error]20:02:09.791 No analysable projects were found. SonarCloud analysis will not be performed. Check the build summary report for details.

20:02:09.791 No analysable projects were found. SonarCloud analysis will not be performed. Check the build summary report for details.

20:02:09.791 Generation of the sonar-properties file failed. Unable to complete the analysis.

##[error]20:02:09.791 Post-processing failed. Exit code: 1

20:02:09.791 Post-processing failed. Exit code: 1

##[error]The process ‘C:\a_tasks\SonarCloudPrepare_14d9cde6-c1da-4d55-aa01-2965cd301255\1.40.2\classic-sonar-scanner-msbuild\SonarScanner.MSBuild.exe’ failed with exit code 1

Finishing: SonarCloudAnalyze

Hey there.

Just to check if I’ve got the context right – is this an Azure Functions project? When projects are on different drives and `sonar.projectBaseDir` is not explicitly set, end step fails hard on generation of sonar-properties (e.g. Azure Functions on GH Actions) · Issue #1294 · SonarSource/sonar-scanner-msbuild · GitHub