- Azure DevOps
- Azure DevOps
- C#
- Pull Request scan does not show any files being scanned
Here is the .yml file I am using
trigger:
- master
pr:
- master
pool:
vmImage: 'windows-latest'
variables:
buildConfig: 'Release'
buildConfiguration: 'Release'
buildPlatform: 'any cpu'
jobs:
- job:
steps:
- task: NuGetCommand@2
inputs:
command: 'restore'
restoreSolution: '**/*.sln'
feedsToUse: 'select'
- task: SonarCloudPrepare@1
inputs:
SonarCloud:
organization:
scannerMode: 'MSBuild'
projectKey:
projectName:
- task: VSBuild@1
displayName: 'Build solution **\*.sln'
inputs:
solution: '**\*.sln'
platform: '$(BuildPlatform)'
configuration: '$(BuildConfiguration)'
- task: SonarCloudAnalyze@1
- task: SonarCloudPublish@1
inputs:
pollingTimeoutSec: '300'