"Azure API APP"-CI/CD构建管道失败 [英] Azure API APP"- CI/CD Build pipeline failed

查看:137
本文介绍了"Azure API APP"-CI/CD构建管道失败的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Azure API APP-为.Net Core API Project创建构建管道后,构建失败,并出现问题在存储库中找不到Web项目.通过在目录中是否存在web.config文件或wwwroot文件夹来标识Web项目. 我们如何解决此问题?

Azure API APP - After creating build pipeline for .Net Core API Project , the build got fail with issue ''No web project was found in the repository. Web projects are identified by presence of either a web.config file or wwwroot folder in the directory." How can we resolve this issue?

推荐答案

The default .NET Core publish build task looks for web.config or wwwroot to identify a target for a web app. If the wwwroot folder is empty version control will not copy it. The way to get around is to edit the .NET Core publish task in the build definition on VSTS.


  1. uncheck the "Publish Web Projects" checkbox.
  2. In the "Projects" edit box, enter the file name including the path for your web project’s project file, or enter "*/*.csproj" if that is the only project in the solution.
    This will let the build publish the right artifacts in the drop folder for the release run to pick them up.


这篇关于"Azure API APP"-CI/CD构建管道失败的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆