Sonar Analyzer Failing

Any thoughts on how we can resolve this? We are getting the following error when running our ADO pipeline (The first warning line is an example, there are many preceding this):

2023-11-09T18:03:24.9761773Z 18:03:24.607 18:03:24.607 WARNING: File ‘C:\a\1\test\Application\Testing\Business\ApplicationAdapterTest\packages.config’ is not located under the base directory ‘C:\a\1\s’ and will not be analyzed.
2023-11-09T18:03:24.9959143Z ##[error]18:03:24.607 No analysable projects were found. SonarCloud analysis will not be performed. Check the build summary report for details.
2023-11-09T18:03:24.9993362Z 18:03:24.607 No analysable projects were found. SonarCloud analysis will not be performed. Check the build summary report for details.
2023-11-09T18:03:24.9994285Z 18:03:24.607 Generation of the sonar-properties file failed. Unable to complete the analysis.
2023-11-09T18:03:24.9995192Z ##[error]18:03:24.617 Post-processing failed. Exit code: 1
2023-11-09T18:03:24.9995900Z 18:03:24.617 Post-processing failed. Exit code: 1
2023-11-09T18:03:24.9997636Z ##[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
2023-11-09T18:03:25.0018947Z ##[section]Finishing: SonarCloudAnalyze

Hey there.

How is your Azure DevOps YML configured? Can you share it here?

Hi there , I’m facing the same issue, pleaes help on this
Here is my yml config

trigger:
- master

pool:
  name: Default
  
variables:
  buildConfiguration: 'Release'

steps:
- task: UseDotNet@2
  displayName: 'Install .NET Core SDK'
  inputs:
    version: 8.x
    performMultiLevelLookup: true
    includePreviewVersions: true # Required for preview versions

- task: DotNetCoreCLI@2
  inputs:
    command: 'restore'
    feedsToUse: 'select'
    vstsFeed: 'my-vsts-feed' # A series of numbers and letters

- task: DotNetCoreCLI@2
  inputs:
    command: 'build'
    arguments: '--configuration $(buildConfiguration)'
  displayName: 'dotnet build $(buildConfiguration)'

- task: DotNetCoreCLI@2
  inputs:
    command: publish
    publishWebProjects: true
    arguments: '--configuration $(buildConfiguration) --output $(Build.ArtifactStagingDirectory)'
    zipAfterPublish: false

# - task: DotNetCoreCLI@2
#   inputs:
#     command: test
#     projects: '**/newapp.test.csproj'
#     arguments: '--configuration $(buildConfiguration)'    

# - task: JavaToolInstaller@0
#   inputs:
#     versionSpec: '17'
#     jdkArchitectureOption: 'x64'
#     jdkSourceOption: 'PreInstalled'

- task: SonarCloudPrepare@1
  inputs:
    SonarCloud: 'SonarCloud'
    organization: 'dev-organization-ksh'
    scannerMode: 'MSBuild'
    projectKey: 'AgileProject'
    projectName: 'AgileProject'

# - task: VSBuild@1
#   inputs:
#     solution: '$(solution)'
#     platform: '$(BuildPlatform)'
#     configuration: '$(BuildConfiguration)'

- task: SonarCloudAnalyze@1
  inputs:
    jdkversion: 'JAVA_HOME_17_X64'

- task: SonarCloudPublish@1
  inputs:
    pollingTimeoutSec: '300'