<commit_before>trigger:
- development

variables:
  SONAR_ORGANIZATION: $(sonarOrganization)
  SONAR_PROJECTKEY: $(sonarProjectKey)

pool:
  vmImage: 'windows-2019'

steps:
- task: UseDotNet@2
  displayName: 'Use .Net Core SDK 2.2.110 (SonarCloud)'
  inputs:
    version: 2.2.110

- task: UseDotNet@2
  displayName: 'Use .Net Core 3.1.302'
  inputs:
    version: 3.1.302

- task: DotNetCoreCLI@2
  displayName: 'Install NBGV tool'
  inputs:
    command: custom
    custom: tool
    arguments: 'install --global nbgv'

- script: 'nbgv cloud'
  displayName: 'Set Version using NBGV'

- task: DotNetCoreCLI@2
  displayName: Restore
  inputs:
    command: restore
    projects: '$(Parameters.projects)'

- task: DownloadSecureFile@1
  displayName: 'Download cuemon.snk'
  inputs:
    secureFile: 'cuemon.snk'

- task: CopyFiles@2
  displayName: 'Copy cuemon.snk to $(System.DefaultWorkingDirectory)\$(BuildSource)'
  inputs:
    SourceFolder: '$(Agent.TempDirectory)'
    Contents: cuemon.snk
    TargetFolder: '$(System.DefaultWorkingDirectory)\$(BuildSource)'

- task: SonarCloudPrepare@1
  inputs:
    SonarCloud: 'Cuemon-SonarCloud'
    organization: '$(SONAR_ORGANIZATION)'
    scannerMode: 'MSBuild'
    projectKey: '$(SONAR_PROJECTKEY)'

- task: DotNetCoreCLI@2
  displayName: 'Build netcoreapp3.0'
  inputs:
    projects: |
     src/**/Cuemon.AspNetCore*.csproj
     src/**/Cuemon.Extensions.AspNetCore*.csproj
     src/**/Cuemon.Extensions.Xunit.csproj
    arguments: '--configuration $(BuildConfiguration) --no-restore --output $(Build.ArtifactStagingDirectory)\netcoreapp3.0 --framework netcoreapp3.0'<commit_msg>Update azure-pipelines.yml for Azure Pipelines<commit_after>trigger:
- development

variables:
  SONAR_ORGANIZATION: $(sonarOrganization)
  SONAR_PROJECTKEY: $(sonarProjectKey)

pool:
  vmImage: 'windows-2019'

steps:
- task: UseDotNet@2
  displayName: 'Use .Net Core SDK 2.2.110 (SonarCloud)'
  inputs:
    version: 2.2.110

- task: UseDotNet@2
  displayName: 'Use .Net Core 3.1.302'
  inputs:
    version: 3.1.302

- task: DotNetCoreCLI@2
  displayName: 'Install NBGV tool'
  inputs:
    command: custom
    custom: tool
    arguments: 'install --global nbgv'

- script: 'nbgv cloud'
  displayName: 'Set Version using NBGV'

- task: DotNetCoreCLI@2
  displayName: Restore
  inputs:
    command: restore
    projects: '**/*.csproj'

- task: DownloadSecureFile@1
  displayName: 'Download cuemon.snk'
  inputs:
    secureFile: 'cuemon.snk'

- task: CopyFiles@2
  displayName: 'Copy cuemon.snk to $(System.DefaultWorkingDirectory)\$(BuildSource)'
  inputs:
    SourceFolder: '$(Agent.TempDirectory)'
    Contents: cuemon.snk
    TargetFolder: '$(System.DefaultWorkingDirectory)\$(BuildSource)'

- task: SonarCloudPrepare@1
  inputs:
    SonarCloud: 'Cuemon-SonarCloud'
    organization: '$(SONAR_ORGANIZATION)'
    scannerMode: 'MSBuild'
    projectKey: '$(SONAR_PROJECTKEY)'

- task: DotNetCoreCLI@2
  displayName: 'Build netcoreapp3.0'
  inputs:
    projects: |
     src/**/Cuemon.AspNetCore*.csproj
     src/**/Cuemon.Extensions.AspNetCore*.csproj
     src/**/Cuemon.Extensions.Xunit.csproj
    arguments: '--configuration $(BuildConfiguration) --no-restore --output $(Build.ArtifactStagingDirectory)\netcoreapp3.0 --framework netcoreapp3.0'
{'fraction_non_alphanumeric': 0.12783568362967504, 'fraction_numerical': 0.023298589822194973, 'mean_word_length': 4.035493827160494, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 4, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '69013', 'n_tokens_mistral': 1207, 'n_tokens_neox': 1141, 'n_words': 235}