@echo off
+setlocal
-if "%~1"=="-h" goto help
-if "%~1"=="-help" goto help
-if "%~1"=="-?" goto help
-if "%~1"=="/?" goto help
+set _args="%*"
+if "%~1"=="-?" set _args="-help"
-powershell -ExecutionPolicy ByPass -NoProfile -File "%~dp0eng\build.ps1" %*
-goto end
-
-:help
-powershell -ExecutionPolicy ByPass -NoProfile -Command "& { . '%~dp0eng\build.ps1'; Get-Help }"
-
-:end
+powershell -ExecutionPolicy ByPass -NoProfile -File "%~dp0eng\build.ps1" %_args%
exit /b %ERRORLEVEL%
@echo off
-"%~dp0build.cmd" -subsetCategory coreclr %*
+setlocal
+
+set _args="-subsetCategory coreclr %*"
+if "%~1"=="-?" set _args="-help"
+
+"%~dp0build.cmd" %_args%
[CmdletBinding(PositionalBinding=$false)]
Param(
+ [switch][Alias('h')]$help,
[switch][Alias('b')]$build,
[switch][Alias('t')]$test,
[switch]$buildtests,
exit 0
}
+if ($help -or (($null -ne $properties) -and ($properties.Contains('/help') -or $properties.Contains('/?')))) {
+ Get-Help
+ exit 0
+}
+
$subsetCategory = $subsetCategory.ToLowerInvariant()
# VS Test Explorer support for libraries
@echo off
-"%~dp0build.cmd" -subsetCategory installer %*
\ No newline at end of file
+setlocal
+
+set _args="-subsetCategory installer %*"
+if "%~1"=="-?" set _args="-help"
+
+"%~dp0build.cmd" %_args%
@echo off
-"%~dp0build.cmd" -subsetCategory libraries %*
\ No newline at end of file
+setlocal
+
+set _args="-subsetCategory libraries %*"
+if "%~1"=="-?" set _args="-help"
+
+"%~dp0build.cmd" %_args%