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.cmd | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) (limited to 'build.cmd') diff --git a/build.cmd b/build.cmd index cc0345489d..dec253b5e3 100644 --- a/build.cmd +++ b/build.cmd @@ -58,6 +58,7 @@ set "__PackagesDir=%DotNetRestorePackagesPath%" if [%__PackagesDir%]==[] set "__PackagesDir=%__ProjectDir%\packages" set "__RootBinDir=%__ProjectDir%\bin" set "__LogsDir=%__RootBinDir%\Logs" +set "__MsbuildDebugLogsDir=%__LogsDir%\MsbuildDebugLogs" set __BuildAll= @@ -319,9 +320,13 @@ REM Generate path to be set for CMAKE_INSTALL_PREFIX to contain forward slash set "__CMakeBinDir=%__BinDir%" set "__CMakeBinDir=%__CMakeBinDir:\=/%" -if not exist "%__BinDir%" md "%__BinDir%" -if not exist "%__IntermediatesDir%" md "%__IntermediatesDir%" -if not exist "%__LogsDir%" md "%__LogsDir%" +if not exist "%__BinDir%" md "%__BinDir%" +if not exist "%__IntermediatesDir%" md "%__IntermediatesDir%" +if not exist "%__LogsDir%" md "%__LogsDir%" +if not exist "%__MsbuildDebugLogsDir%" md "%__MsbuildDebugLogsDir%" + +REM Set up the directory for MSBuild debug logs. +set MSBUILDDEBUGPATH=%__MsbuildDebugLogsDir% REM It is convenient to have your Nuget search path include the location where the build REM will place packages. However nuget used during the build will fail if that directory -- cgit v1.2.3