生成服务器上错mstest.exe [英] wrong mstest.exe on the build server

查看:185
本文介绍了生成服务器上错mstest.exe的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我如何使用正确的Mstest.exe在Build?

How do i use the correct Mstest.exe in the Build?

我的配置:


  • TFS2012

  • VS2010

然后我安装:


  • VS2012

  • VS2012 UPDATE3

  • VS2010的Service Pack 1

  • 团队资源管理器2012(忙着安装)

在构建编译是succesfull,测试的MSBuild挂起的时候...

On Build Compile is succesfull, when testing msbuild "hangs" ...

我想用VS2012 MSTest的(11.0),而不是VS2010(10.0)

I want to use VS2012 mstest (11.0) and not the VS2010(10.0)

C:\\ Program Files文件(x86)的\\微软的Visual Studio
  10.0 \\ Common7 \\ IDE \\ mstest.exe

C:\Program Files (x86)\Microsoft Visual Studio 10.0\Common7\IDE\mstest.exe

而不是

C:\\ Program Files文件(x86)的\\微软的Visual Studio
  11.0 \\ Common7 \\ IDE \\ mstest.exe

C:\Program Files (x86)\Microsoft Visual Studio 11.0\Common7\IDE\mstest.exe

这会使构建挂起。当执行生成服务器上11.0 \\ mstest.exe它正​​在正确的。

This causes the build to hang. When executing the 11.0\mstest.exe on the build server it is working correct.

推荐答案

我编辑的构建文件,您可以在一个参数指定MSTest的路径,我把它叫做MStestFolder。

I edited the Build File where you can specify the path for mstest in a parameter, I called it MStestFolder.

文件夹属性

<x:Members>
    <x:Property Name="MStestFolder" Type="InArgument(x:String)" />
</x:Members>

3次,我不得不指定的刀具路径MSTest的

3 times i had to specify the toolpath for mstest

MSTEST标记

<mtbwa:MSTest .... ToolPath="[MStestFolder]" .../>

在生成你在其它选项卡指定MStestFolder:)

In the Build you have to specify the MStestFolder in the Misc tab :)

这篇关于生成服务器上错mstest.exe的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆