【发布时间】: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 运行程序无法记录其使用的确切命令行,因此难以诊断此类问题。非常沮丧。
【问题讨论】: