Попытка использовать библиотеку из другого проекта в конвейере сборки 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 показывает, что я взял артефакт и две библиотеки, которые мне нужны в текущем проекте. Поскольку в текущем проекте отсутствуют эти библиотеки, мне нужно, чтобы он ссылался на них. Anythoughts