From f471342cc072546edf84bb110aa3d2765ad2bb76 Mon Sep 17 00:00:00 2001 From: Bruce Forstall Date: Mon, 4 Feb 2019 19:00:39 -0800 Subject: Configure MSBuild debug path and save any logs We have had many problems in the CI with MSBuild failing, and not capturing the failure logs. See https://github.com/dotnet/coreclr/issues/20236. So, for all msbuild invocations, set MSBUILDDEBUGPATH to a new, distinguished, subdirectory of the bin\Logs directory, named "MsbuildDebugLogs". Change the CI to upload any log files found there. --- build-test.cmd | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'build-test.cmd') diff --git a/build-test.cmd b/build-test.cmd index 26b2b86a97..0c1ded3ba8 100644 --- a/build-test.cmd +++ b/build-test.cmd @@ -36,6 +36,7 @@ set "__SourceDir=%__ProjectDir%\src" set "__PackagesDir=%__ProjectDir%\packages" set "__RootBinDir=%__ProjectDir%\bin" set "__LogsDir=%__RootBinDir%\Logs" +set "__MsbuildDebugLogsDir=%__LogsDir%\MsbuildDebugLogs" :: Default __Exclude to issues.targets set __Exclude=%__TestDir%\issues.targets @@ -158,6 +159,10 @@ if not exist "%__TestBinDir%" md "%__TestBinDir%" if not exist "%__NativeTestIntermediatesDir%" md "%__NativeTestIntermediatesDir%" if not exist "%__ManagedTestIntermediatesDir%" md "%__ManagedTestIntermediatesDir%" if not exist "%__LogsDir%" md "%__LogsDir%" +if not exist "%__MsbuildDebugLogsDir%" md "%__MsbuildDebugLogsDir%" + +REM Set up the directory for MSBuild debug logs. +set MSBUILDDEBUGPATH=%__MsbuildDebugLogsDir% echo %__MsgPrefix%Checking prerequisites -- cgit v1.2.3