【发布时间】:2020-06-03 18:59:08
【问题描述】:
我有一个包含多个解决方案的 monorepo,并尝试配置 NuGet yaml 以恢复到根目录。
默认task: NuGetCommand@2 仅在.sln 文件目录中恢复,但这对我不起作用。
UI 管道版本有参数Folder,它允许为包路径设置路径。
yaml版本有参数吗?
我试图设置一个环境变量 - 但它不起作用。
yaml代码片段为:
- name: NUGET_PACKAGES
value: $(build.SourcesDirectory)/
- task: NuGetCommand@2
displayName: 'Nuget Restore '
inputs:
command: 'restore'
restoreSolution: '**/*.sln'
feedsToUse: 'select'
nugetConfigPath: 'packages.config'
verbosityRestore: 'Normal'
【问题讨论】:
标签: .net azure-devops nuget azure-pipelines nuget-package-restore