简体   繁体   中英

Building Project in Azure devops(CI) doesnt build all projects

Building Projects in Azure DevOps (CI) doesn't build all projects.

I tried to build the Solution but all projects are not build.

Path to project(s) in CI pipelines: **/*.csproj

am not getting any errors message but all projects are not published.

CI 流水线输出 CI 管道路径详细信息

Is it a build or publish issue?

In the logs of the build step, are all projects build?

In the publish step, did you select "Publish web projects"?

在此处输入图像描述

If you want to publish other projects (in other artifacts), you may need to add other publish steps.

If you mean the publish build artifact step and you see any warning like this:

##[warning]Directory 'D:\a\1\a' is empty. Nothing will be added to build artifact 'drop'.

You are publishing the default directory: $(Build.ArtifactStagingDirectory) while your project is not in this directory. You can check it in your publish build artifact task.

在此处输入图像描述

If it is the case, you need to add a copy file task to copy the artifact files from the build output path to $(Build.ArtifactStagingDirectory) .

在此处输入图像描述

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM