summaryrefslogtreecommitdiff
path: root/src/internal/WixInternal.MSTestSupport/MsbuildUtilities.cs
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/internal/WixInternal.MSTestSupport/MsbuildUtilities.cs8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/internal/WixInternal.MSTestSupport/MsbuildUtilities.cs b/src/internal/WixInternal.MSTestSupport/MsbuildUtilities.cs
index 4776e6f1..8f3fecd9 100644
--- a/src/internal/WixInternal.MSTestSupport/MsbuildUtilities.cs
+++ b/src/internal/WixInternal.MSTestSupport/MsbuildUtilities.cs
@@ -16,7 +16,7 @@ namespace WixInternal.MSTestSupport
16 16
17 public static class MsbuildUtilities 17 public static class MsbuildUtilities
18 { 18 {
19 public static MsbuildRunnerResult BuildProject(BuildSystem buildSystem, string projectPath, string[] arguments = null, string configuration = "Release", string verbosityLevel = "normal", bool suppressValidation = true) 19 public static MsbuildRunnerResult BuildProject(BuildSystem buildSystem, string projectPath, string[] arguments = null, string configuration = "Release", string verbosityLevel = "normal", bool suppressValidation = true, bool binlog = true)
20 { 20 {
21 var allArgs = new List<string> 21 var allArgs = new List<string>
22 { 22 {
@@ -26,9 +26,13 @@ namespace WixInternal.MSTestSupport
26 // Node reuse means that child msbuild processes can stay around after the build completes. 26 // Node reuse means that child msbuild processes can stay around after the build completes.
27 // Under that scenario, the root msbuild does not reliably close its streams which causes us to hang. 27 // Under that scenario, the root msbuild does not reliably close its streams which causes us to hang.
28 "-nr:false", 28 "-nr:false",
29 MsbuildUtilities.GetQuotedSwitch(buildSystem, "bl", Path.ChangeExtension(projectPath, ".binlog"))
30 }; 29 };
31 30
31 if (binlog)
32 {
33 MsbuildUtilities.GetQuotedSwitch(buildSystem, "bl", Path.ChangeExtension(projectPath, ".binlog"));
34 }
35
32 if (arguments != null) 36 if (arguments != null)
33 { 37 {
34 allArgs.AddRange(arguments); 38 allArgs.AddRange(arguments);