尝试在Azure构建管道中使用另一个项目中的库。我的项目取决于该参考。
pool:
name: Hosted Ubuntu 1604
steps:
- task: DownloadBuildArtifacts@0
displayName: 'Download Build Artifacts'
inputs:
buildType: specific
project: '8d7f1dea-4875-48da-9521-1761f7925dec'
pipeline: 4
artifactName: drop
itemPattern: |
drop/CSC.Automation/CSC.Automation.dll
drop/CSC.Automation/CSC.dll
- task: DotNetCoreCLI@2
displayName: Restore
inputs:
command: restore
projects: '$(Parameters.RestoreBuildProjects)'
- task: DotNetCoreCLI@2
displayName: Build
inputs:
projects: '$(Parameters.RestoreBuildProjects)'
arguments: '--configuration $(BuildConfiguration)'
- task: DotNetCoreCLI@2
displayName: Test
inputs:
command: test
projects: '$(Parameters.TestProjects)'
arguments: '--configuration $(BuildConfiguration)'
enabled: false
- task: DotNetCoreCLI@2
displayName: Publish
inputs:
command: publish
publishWebProjects: True
arguments: '--configuration $(BuildConfiguration) --output $(build.artifactstagingdirectory)'
zipAfterPublish: false
- task: PublishBuildArtifacts@1
displayName: 'Publish Artifact'
inputs:
PathtoPublish: '$(build.artifactstagingdirectory)'
condition: succeededOrFailed()
上面的YAML代码向我展示了抓取工件以及当前项目中我需要的确切两个库。由于当前项目缺少这些库,因此我需要它来引用它们。有什么想法吗?