Bru*_*Pro 3 .net yaml .net-core azure-devops azure-pipelines
我将 Azure DevOps 与 .Net Core Restore 一起使用,但指定多个项目(如 VSTS 中的逐行)输出“没有与搜索模式匹配的文件。”。
如果只有一个项目可以工作,我该如何处理多个项目?
- task: DotNetCoreCLI@2
name: "ProvisionRestoreProjects"
inputs:
command: 'restore'
projects: '**/ProjectA.csproj
**/ProjectB.csproj'
feedsToUse: 'select'
vstsFeed: 'MyFeedArtifact-master'
arguments: '--configuration release --no-cache'
Run Code Online (Sandbox Code Playgroud)
您可以通过这种方式指定多个项目:
- task DotNetCoreCLI@2
inputs:
commands: restore
projects: |
**/ProjectA.csproj
**/ProjectB.csproj
vstsFeed: 'my-feed'
Run Code Online (Sandbox Code Playgroud)
我猜您使用了 Tasks 助手并生成了 yaml,但我认为那里存在错误。
| 归档时间: |
|
| 查看次数: |
1850 次 |
| 最近记录: |