代码拉取完成,页面将自动刷新
pool:
vmImage: 'windows-latest'
steps:
- task: UseDotNet@2
displayName: 'Use .NET SDK'
inputs:
packageType: 'sdk'
version: 8.0.100
- task: DotNetCoreCLI@2
displayName: 'Pack Templates'
inputs:
packagesToPack: 'Avalonia.Templates.csproj'
command: pack
outputDir: '$(Build.ArtifactStagingDirectory)/NuGet'
verbosityPack: normal
- task: CmdLine@2
displayName: 'Install templates'
inputs:
script: 'dotnet new install $(Build.ArtifactStagingDirectory)/NuGet/*.nupkg'
- task: CmdLine@2
displayName: 'Install workload'
inputs:
script: 'dotnet workload install android ios wasm-tools wasm-experimental'
- task: PowerShell@2
displayName: 'Run Tests'
inputs:
filePath: 'tests/build-test.ps1'
failOnStdError: true
workingDirectory: 'tests'
- task: PublishBuildArtifacts@1
displayName: 'Publish Build Artifacts'
inputs:
pathtoPublish: '$(Build.ArtifactStagingDirectory)/NuGet'
artifactName: 'NuGet'
condition: succeeded()
- task: PublishBuildArtifacts@1
displayName: 'Publish Test Binlog Artifacts'
inputs:
pathtoPublish: 'binlog/test.binlog'
artifactName: 'TestBinlog'
condition: failed()
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。