Skip to content

Commit f5ab630

Browse files
authored
Discourage building with MSBUILDDEBUGONSTART (#4952)
Discourage building with MSBUILDDEBUGONSTART. Allow debugging of a build if MSBUILDDEBUGONSTART_HARD is defined.
1 parent 0f85cc7 commit f5ab630

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

build.cmd

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
11
@echo off
2+
setlocal
3+
if defined MSBUILDDEBUGONSTART_HARD goto build
4+
if not defined MSBUILDDEBUGONSTART goto build
5+
if %MSBUILDDEBUGONSTART% == 0 goto build
6+
set MSBUILDDEBUGONSTART=
7+
echo To debug the build, define a value for MSBUILDDEBUGONSTART_HARD.
8+
:build
29
powershell -NoLogo -NoProfile -ExecutionPolicy ByPass -Command "& """%~dp0eng\common\build.ps1""" -build -restore %*"
310
exit /b %ErrorLevel%

0 commit comments

Comments
 (0)