本文介绍了如何从命令行运行mstest dll的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

任何人都知道如何运行 mstest 通过命令行构建的单元测试dll ,而无需运行VS

anybody knows how to run unit test dlls built using mstest from the command line, without running VS

考虑在计算机上安装了.net 4.0和VS2010

considering that on the machine there is .net 4.0 and VS2010 installed

推荐答案

我自己还没有完成,但是我可以想象使用 mstest命令行是前进的方向...如果您已经尝试过并遇到问题,请提供更多详细信息.

I haven't done it myself, but I'd imagine that using the mstest command line is the way forward... if you've already tried that and had problems, please give more details.

mstest /testcontainer:path\to\tests.dll

如评论中所述,您应该 在路径上放置正确的目录后执行此操作,或者包含mstest.exe的完整路径.

As noted in comments, you should either do this after putting the right directories on the path, or include the full path to mstest.exe.

这篇关于如何从命令行运行mstest dll的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

09-09 22:42