From 2587a8b46b705d53156f5cd1bd866f855049081d Mon Sep 17 00:00:00 2001 From: Rob Mensching Date: Fri, 19 Mar 2021 11:50:09 -0700 Subject: Allow the BuildAndQuery output filename to be set --- src/WixBuildTools.TestSupport/Builder.cs | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) (limited to 'src') diff --git a/src/WixBuildTools.TestSupport/Builder.cs b/src/WixBuildTools.TestSupport/Builder.cs index aae9681a..ef0de8c9 100644 --- a/src/WixBuildTools.TestSupport/Builder.cs +++ b/src/WixBuildTools.TestSupport/Builder.cs @@ -8,16 +8,19 @@ namespace WixBuildTools.TestSupport public class Builder { - public Builder(string sourceFolder, Type extensionType = null, string[] bindPaths = null) + public Builder(string sourceFolder, Type extensionType = null, string[] bindPaths = null, string outputFile = null) { this.SourceFolder = sourceFolder; this.ExtensionType = extensionType; this.BindPaths = bindPaths; + this.OutputFile = outputFile ?? "test.msi"; } - public string[] BindPaths { get; } + public string[] BindPaths { get; set; } - public Type ExtensionType { get; } + public Type ExtensionType { get; set; } + + public string OutputFile { get; set; } public string SourceFolder { get; } @@ -29,7 +32,7 @@ namespace WixBuildTools.TestSupport using (var fs = new DisposableFileSystem()) { var intermediateFolder = fs.GetFolder(); - var outputPath = Path.Combine(intermediateFolder, @"bin\test.msi"); + var outputPath = Path.Combine(intermediateFolder, "bin", this.OutputFile); var args = new List { -- cgit v1.2.3-55-g6feb