gpt4 book ai didi

Azure CI 管道忽略了我的 botdetect.xml 文件

转载 作者:行者123 更新时间:2023-12-03 05:36:02 31 4
gpt4 key购买 nike

我正在使用 Azure CI 管道并使用 .NetCore 构建任务模板,今天我注意到我的源代码管理中的文件 botdetect.xml,并且在项目从 CI/CD 管道传递后,特定的 .xml

最佳答案

dotnetpublish命令发布.NET构建的输出,您需要确保构建输出中存在botdetect.xml文件,然后才能发布它通过运行 dotnetpublish --output $(Build.ArtifactStagingDirectory)$(Build.ArtifactStagingDirectory),并使用发布工件任务发布工件。

您可以检查您的.csproj文件以查看.xml文件是否已设置为“始终复制到输出目录”,看起来像:

<Compile Include="botdetect.xml">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</Compile>

关于Azure CI 管道忽略了我的 botdetect.xml 文件,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/62508511/

31 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com