# .NET Desktop # Build and run tests for .NET Desktop or Windows classic desktop solutions. # Add steps that publish symbols, save build artifacts, and more: # https://docs.microsoft.com/azure/devops/pipelines/apps/windows/dot-net trigger: - master pool: 'BuildServer' variables: solution: '**/*.sln' buildPlatform: 'Any CPU' buildConfiguration: 'Release' steps: - task: NuGetToolInstaller@1 - task: NuGetCommand@2 inputs: restoreSolution: '$(solution)' - task: UseDotNet@2 displayName: "Set SDK version to .Net 6" inputs: packageType: 'sdk' version: '6.0.x' - task: SonarQubePrepare@5 inputs: SonarQube: 'Dummy' scannerMode: 'MSBuild' projectKey: 'Dummy' projectName: 'Dummy' - task: DotNetCoreCLI@2 continueOnError: true inputs: command: 'build' projects: '$(solution)' arguments: '-v d' - task: SonarQubeAnalyze@5