Austin Schuh | 272c613 | 2020-11-14 16:37:52 -0800 | [diff] [blame] | 1 | @echo off |
| 2 | @REM Builds a .NET solution file, adds the project, builds it |
| 3 | @REM and executes it. Cleans up all generated files and directories. |
| 4 | |
| 5 | set TEMP_BIN=.tmp |
| 6 | |
| 7 | @REM Run the .NET Core tests |
| 8 | set CORE_FILE=FlatBuffers.Core.Test |
| 9 | set CORE_PROJ_FILE=%CORE_FILE%.csproj |
| 10 | set CORE_SLN_FILE=%CORE_FILE%.sln |
| 11 | dotnet new sln --force --name %CORE_FILE% |
| 12 | dotnet sln %CORE_SLN_FILE% add %CORE_PROJ_FILE% |
| 13 | dotnet build -c Release -o %TEMP_BIN% -v quiet %CORE_PROJ_FILE% |
| 14 | %TEMP_BIN%\%CORE_FILE%.exe |
| 15 | del /f %CORE_SLN_FILE% |
| 16 | |
| 17 | @REM TODO(dbaileychess): Support the other configurations in NetTest.sh |
| 18 | |
| 19 | @REM remove the temp bin directory, with files (/S) and quietly (/Q) |
| 20 | RD /S /Q %TEMP_BIN% |