@echo off
-setlocal
-set _args="%*"
-if "%~1"=="-?" set _args="-help"
+if "%~1"=="-h" goto help
+if "%~1"=="-help" goto help
+if "%~1"=="-?" goto help
+if "%~1"=="/?" goto help
-powershell -ExecutionPolicy ByPass -NoProfile -File "%~dp0eng\build.ps1" %_args%
+powershell -ExecutionPolicy ByPass -NoProfile -File "%~dp0eng\build.ps1" %*
+goto end
+
+:help
+powershell -ExecutionPolicy ByPass -NoProfile -Command "& { . '%~dp0eng\build.ps1'; Get-Help }"
+
+:end
exit /b %ERRORLEVEL%
@echo off
-setlocal
-
-set _args="-subsetCategory coreclr %*"
-if "%~1"=="-?" set _args="-help"
-
-"%~dp0build.cmd" %_args%
+"%~dp0build.cmd" -subsetCategory coreclr %*
[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
-setlocal
-
-set _args="-subsetCategory installer %*"
-if "%~1"=="-?" set _args="-help"
-
-"%~dp0build.cmd" %_args%
+"%~dp0build.cmd" -subsetCategory installer %*
\ No newline at end of file
@echo off
-setlocal
-
-set _args="-subsetCategory libraries %*"
-if "%~1"=="-?" set _args="-help"
-
-"%~dp0build.cmd" %_args%
+"%~dp0build.cmd" -subsetCategory libraries %*
\ No newline at end of file