1

我们正在尝试从命令行使用 MSTest 执行单元测试,并在 TFS 服务器上发布结果。问题是 MSTest 总是返回:

Publishing results of test run buildmachine@XXX-XXXXXXX 2010-12-16 11:39:13_Release_Any CPU to http://xxxx:8080/Build/v1.0/PublishTestResultsBuildService2.asmx... ......................................................................................... Build 'xxx>xxx>x>x>x>xxxx>xxxx>x.x.x.xxx' does not include the specified configuration ('Release/Any CPU').

问题是指定的配置应该存在。我们使用下一个 MSBuild 设置进行构建:

<ConfigurationToBuild Include="Release|Any CPU">
  <FlavorToBuild>Release</FlavorToBuild>
  <PlatformToBuild>Any CPU</PlatformToBuild>
</ConfigurationToBuild>

任何想法?我开始厌倦这个了。

4

1 回答 1

0

问题是构建没有成功,然后 MSTest 无法发布结果。错误信息可能会更好...

于 2010-12-16T17:22:11.997 回答