【问题标题】:MSBuild runner changes in TeamCity 6.5TeamCity 6.5 中的 MSBuild 运行程序更改
【发布时间】:2011-10-08 12:18:31
【问题描述】:

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

 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 所讨论的),平台参数的处理方式有所不同 - “AnyCPU”或“Any CPU”。据我了解,情况就是这样。可以在不恢复运行器中的 /p 命令行参数的情况下解决此问题吗?

此外,这个新的 MSBuild 运行程序无法记录其使用的确切命令行,因此难以诊断此类问题。非常沮丧。

【问题讨论】:

    标签: msbuild teamcity


    【解决方案1】:

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

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2021-05-15
      • 2018-09-02
      • 1970-01-01
      • 1970-01-01
      • 2017-03-22
      • 2011-10-20
      • 1970-01-01
      • 2011-02-17
      相关资源
      最近更新 更多