The solution that worked for me is the following:
<exec program ="C:\Program Files\Microsoft Visual Studio 9.0\Common7\IDE\MSTest.exe" >
<arg value="/testcontainer:${Test_dll}"/>
<arg value="/resultsfile:C:\Test\TestResults.trx"/>
</exec>
This is just the basic nant element, although it is as extensible as the MSTest command line allows.
source
share