# .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: vmImage: 'windows-latest' variables: artemisSolution: '**/Artemis.sln' NUGET_PACKAGES: $(Pipeline.Workspace)/.nuget/packages steps: - checkout: self path: s/Artemis - task: UseDotNet@2 displayName: 'Install .Net 5 SDK' inputs: packageType: 'sdk' version: '5.0.100' - task: DownloadPipelineArtifact@2 inputs: buildType: 'specific' project: '882fdc71-c09c-4923-8ab0-2cd9fcf0656d' definition: '3' buildVersionToDownload: 'latest' artifactName: 'RGB.NET development build' targetPath: '$(Pipeline.Workspace)/s/RGB.NET/bin/netstandard2.0' - task: DotNetCoreCLI@2 displayName: 'dotnet restore Artemis' inputs: command: 'restore' projects: '$(artemisSolution)' feedsToUse: 'config' nugetConfigPath: '$(Pipeline.Workspace)/s/Artemis/src/NuGet.Config' - task: DotNetCoreCLI@2 displayName: 'Publish Artemis' inputs: command: 'publish' publishWebProjects: false projects: '$(artemisSolution)' arguments: '--runtime win-x64 --self-contained false --output $(Build.ArtifactStagingDirectory)/build /nowarn:cs1591' zipAfterPublish: false modifyOutputPath: false - task: DownloadPipelineArtifact@2 inputs: buildType: 'specific' project: '882fdc71-c09c-4923-8ab0-2cd9fcf0656d' definition: '2' buildVersionToDownload: 'latest' artifactName: 'Artemis build' targetPath: '$(Build.ArtifactStagingDirectory)/build' - task: PublishPipelineArtifact@1 displayName: 'Upload build to Azure Pipelines' inputs: targetPath: '$(Build.ArtifactStagingDirectory)/build' artifact: 'Artemis build' publishLocation: 'pipeline'