【发布时间】:2020-03-29 00:23:29
【问题描述】:
下面的 YAML sn-p 似乎没有按预期工作。
我在使用 windows-latest 映像运行的管道中对其进行了配置,它尝试恢复存储库中的所有项目,而不是只查看解决方案文件。
另外,它似乎完全忽略了 --no-restore 标志
- task: DotNetCoreCLI@2
displayName: Package to Staging directory
inputs:
command: pack
configuration: $(BUILD_CONFIGURATION)
projects: 'support-libs.sln'
packDirectory: $(Build.ArtifactStagingDirectory)
nugetConfigPath: 'sf-solution/nuget.config'
arguments: '--no-restore'
verbosityRestore: Minimal
出现在步骤日志上的命令是:
“C:\Program Files\dotnet\dotnet.exe”包 d:\a\1\s\sf-solution\SampleProject\SampleProject.csproj --output d:\a\1\a /p:Configuration=Debug --verbosity 详细
上面的项目甚至没有包含在sn-p配置的support-libs SLN文件中。
【问题讨论】:
标签: azure-devops azure-pipelines nuget-package-restore dotnet-cli