我似乎漏掉了一些内容。在使用经典编辑器创建构建管道时,我可以看到右上角有一个"Artifacts"选项卡:
在那里,我可以浏览编译器创建的内容,以帮助找出发布管道的文件夹结构。
现在,当我使用YAML模板(也是.NET Framework)创建构建管道时,没有“Artifacts”这样的选项卡:
根据日志,一些文件已被写入。是否有某种浏览文件的方法,或者我必须猜测哪些这些变量与日志文件中的哪个文件夹相匹配?
这是YAML:
# .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://learn.microsoft.com/azure/devops/pipelines/apps/windows/dot-net
trigger:
- master
pool:
vmImage: 'windows-latest'
variables:
solution: '**/*.sln'
buildPlatform: 'Any CPU'
buildConfiguration: 'Release'
steps:
- task: NuGetToolInstaller@1
- task: NuGetCommand@2
inputs:
restoreSolution: '$(solution)'
- task: VSBuild@1
inputs:
solution: '$(solution)'
platform: '$(buildPlatform)'
configuration: '$(buildConfiguration)'
- task: ArchiveFiles@2
inputs:
rootFolderOrFile: '$(Build.BinariesDirectory)'
includeRootFolder: false
archiveType: 'zip'
archiveFile: '$(Build.ArtifactStagingDirectory)/Release.zip'
replaceExistingArchive: true
我使用的YAML大多是从Github存储库构建时生成的标准YAML。这会影响我是否能够查看工件吗?我是否应该先将Github内容复制到Azure,然后再进行构建?