1@echo off 2set MSBDIR=@%WINDIR%\Microsoft.NET\Framework\v4.0.30319 3%MSBDIR%\msbuild.exe projects\GEDKeeper2.mswin.sln /p:Configuration=Debug /p:Platform="x86" /t:Rebuild /p:TargetFrameworkVersion=v4.0 /p:CIMode=true 4 5set BUILD_STATUS=%ERRORLEVEL% 6if %BUILD_STATUS%==0 goto test 7if not %BUILD_STATUS%==0 goto fail 8 9:fail 10pause 11exit /b 1 12 13:test 14set NUNIT="nunit_not_found" 15@if exist "%PROGRAMFILES(X86)%\NUnit 2.6.4\bin\nunit-console-x86.exe" set NUNIT="%PROGRAMFILES(X86)%\NUnit 2.6.4\bin\nunit-console-x86.exe" 16@if exist "%PROGRAMFILES(X86)%\NUnit.org\nunit-console\nunit3-console.exe" set NUNIT=@"%PROGRAMFILES(X86)%\NUnit.org\nunit-console\nunit3-console.exe" --x86 17%NUNIT% projects\GKTests\bin\Debug\GKTests.dll 18pause 19exit /b 0 20