gpt4 book ai didi

TeamCity 6.5 中的 MSBuild 运行器更改

转载 作者:行者123 更新时间:2023-12-04 06:19:41 25 4
gpt4 key购买 nike

我们最近升级到 TeamCity 6.5 Enterprise,它开始提示 MSBuild 运行程序步骤中的/p 命令行参数,建议将这些参数移动到构建参数。所以我从“命令行参数:”中删除了我所有的/p 并将它们添加到构建参数中。 Platform 参数立即出现了问题:

 C:\Windows\Microsoft.NET\Framework\v4.0.30319\Microsoft.Common.targets(483, 9): The OutputPath property is not set for project 'MyProj.csproj.teamcity'.  Please check to make sure that you have specified a valid combination of Configuration and Platform for this project.  Configuration='Testing'  Platform='Any CPU'.  You may be seeing this message because you are trying to build a project without a solution file, and have specified a non-default Configuration or Platform that doesn't exist for this project.

我的构建场景包括很多步骤,一些构建 sln 文件,其他 .csproj/.msbuild 没有解决方案文件。根据您构建的内容(如 here 所讨论的),处理 Platform 参数的方式有所不同 - “AnyCPU”或“Any CPU”。据我了解情况是这样。是否可以在不恢复到运行程序中的/p 命令行参数的情况下修复此问题?

此外,这个新的 MSBuild 运行器没有记录它使用的确切命令行,因此很难诊断此类问题。非常令人沮丧。

最佳答案

这是两个相关问题的答案,一个是 TeamCity 构建参数,另一个是 OutputPath 属性,您应该使用 OutDir 来指定该属性。

  • MSBuild: OutputPath directory is empty
  • TeamCity says to use "Build Parameters" instead of "/property:" in an MSBuild step. What does that mean?
  • 关于TeamCity 6.5 中的 MSBuild 运行器更改,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/6747432/

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