@echo off
pushd "%~dp0"
for /f "tokens=*" %%f in ('dir /s /b *.tt') do (
    echo>&2 dotnet t4 "%%f"
    dotnet t4 "%%f" || goto :end
)
:end
popd

@echo off
pushd "%~dp0"
for /f "tokens=*" %%f in ('dir /s /b *.tt') do (
    echo>&2 dotnet t4 "%%f"
    dotnet t4 "%%f" || goto :end
)
:end
popd
exit /b %ERRORLEVEL%

Fix error propagation in T4 batch script
Fix error propagation in T4 batch script [ci skip]
