@if "%_echo%" neq "on" echo off :: To run tests outside of MSBuild.exe :: %1 is the path to the tests\ folder pushd %1 FOR /D %%F IN (*.Tests) DO ( IF EXIST %%F\dnxcore50 ( pushd %%F\dnxcore50 @echo "corerun.exe xunit.console.netcore.exe %%F.dll -xml testResults.xml -notrait category=outerloop -notrait category=failing -notrait category=nonwindowstests -notrait Benchmark=true" corerun.exe xunit.console.netcore.exe %%F.dll -xml testResults.xml -notrait category=outerloop -notrait category=failing -notrait category=nonwindowstests -notrait Benchmark=true popd ) ) popd