Where is mstest.exe located?

2019-01-17 19:12发布

I need to run mstest from the command line - where in the world is this exe located? Can anyone give me a clue?

Edit: I only have Visual Studio 2010 installed

9条回答
老娘就宠你
2楼-- · 2019-01-17 19:43

C:\Program Files\Microsoft Visual Studio 9.0\Common7\IDE

If people only knew that Windows can search for files...

You can simply open up Visual Studio's command line prompt to include that directory in the PATH. Take a look at the start menu entry "Visual Studio 2008 Command Prompt".

查看更多
Root(大扎)
3楼-- · 2019-01-17 19:44

If you run a visual studio commmand prompt before you run your scripts -- which should be doable in most situations -- you can run %VSINSTALLDIR\Common7\IDE\mstest -- this means that you can move with the version of VS, and not have to react to director changes if users install in a different directory.

查看更多
Ridiculous、
4楼-- · 2019-01-17 19:48

If you can't find it, try searching like this:

%VS90COMNTOOLS%\..\IDE\MSTest.exe
查看更多
登录 后发表回答