Azure DevOps忽略了一个项目的发布

时间:2019-04-10 14:33:51

标签: asp.net-core azure-devops asp.net-core-2.0

在Azure DevOps管道上,我负责构建Asp.Net Core应用程序:

- task: DotNetCoreCLI@2
  displayName: 'Build'
  inputs:
    command: build
    projects: '**/*.csproj'
    arguments: '--configuration $(buildConfiguration)'

带输出:

Restoring packages for /home/vsts/work/1/s/src/Api/Api.csproj...
Restoring packages for /home/vsts/work/1/s/src/Core/Core.csproj...
Restore completed in 672.27 ms for /home/vsts/work/1/s/src/Core/Core.csproj.
Restore completed in 676.4 ms for /home/vsts/work/1/s/src/Api/Api.csproj.

Core -> /home/vsts/work/1/s/src/Core/bin/Release/netcoreapp2.2/Core.dll
Api -> /home/vsts/work/1/s/src/Api/bin/Release/netcoreapp2.2/Api.dll

Build succeeded.
0 Warning(s)
0 Error(s)

然后我添加了一个发布任务:

- task: DotNetCoreCLI@2
  displayName: 'Publish'
  inputs:
    command: publish
    publishWebProjects: false
    arguments: '--configuration $(buildConfiguration) --output $(build.artifactstagingdirectory)'
    zipAfterPublish: true

输出:

Restore completed in 54.68 ms for /home/vsts/work/1/s/src/Core/Core.csproj.     
Core -> /home/vsts/work/1/s/src/Core/bin/Release/netcoreapp2.2/Core.dll
Core -> /home/vsts/work/1/a/.    

两个任务运行都很好,但是任务发布不能发布Api项目。

知道为什么吗?

0 个答案:

没有答案