diff options
author | Bruce Forstall <brucefo@microsoft.com> | 2019-02-04 19:00:39 -0800 |
---|---|---|
committer | Bruce Forstall <brucefo@microsoft.com> | 2019-02-04 19:00:39 -0800 |
commit | f471342cc072546edf84bb110aa3d2765ad2bb76 (patch) | |
tree | 8b535f2cbe5c81b43ec9572d96abeca2938df7df /build-test.cmd | |
parent | 7e20b6fa7b2253511b6f0a7d76c955360e040df6 (diff) | |
download | coreclr-f471342cc072546edf84bb110aa3d2765ad2bb76.tar.gz coreclr-f471342cc072546edf84bb110aa3d2765ad2bb76.tar.bz2 coreclr-f471342cc072546edf84bb110aa3d2765ad2bb76.zip |
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.
Diffstat (limited to 'build-test.cmd')
-rw-r--r-- | build-test.cmd | 5 |
1 files changed, 5 insertions, 0 deletions
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 |