@echo off rem ** check if directories exists ** if not exist "bin" goto err_bin_not_found rem ** cleanup ** rmdir /s /q bin\debug rem ** build ** dotnet build -c Debug goto done :err_bin_not_found echo ERR: missing 'bin' directory in current location goto exit :done echo *** DONE *** :exit