Allow the BuildAndQuery output filename to be set
Rob Mensching committed
Mar 19, 2021 at 11:50 UTC
2587a8b46b705d53156f5cd1bd866f855049081d
1 file changed
+7
-4
src/WixBuildTools.TestSupport/Builder.cs
+7
-4
@@ -8,16 +8,19 @@ namespace WixBuildTools.TestSupport
8
9
public class Builder
10
{
11
- public Builder(string sourceFolder, Type extensionType = null, string[] bindPaths = null)
11
+ public Builder(string sourceFolder, Type extensionType = null, string[] bindPaths = null, string outputFile = null)
12
{
13
this.SourceFolder = sourceFolder;
14
this.ExtensionType = extensionType;
15
this.BindPaths = bindPaths;
16
+ this.OutputFile = outputFile ?? "test.msi";
17
}
18
18
- public string[] BindPaths { get; }
19
+ public string[] BindPaths { get; set; }
20
20
- public Type ExtensionType { get; }
21
+ public Type ExtensionType { get; set; }
22
+
23
+ public string OutputFile { get; set; }
24
25
public string SourceFolder { get; }
26
@@ -29,7 +32,7 @@ namespace WixBuildTools.TestSupport
32
using (var fs = new DisposableFileSystem())
33
{
34
var intermediateFolder = fs.GetFolder();
32
- var outputPath = Path.Combine(intermediateFolder, @"bin\test.msi");
35
+ var outputPath = Path.Combine(intermediateFolder, "bin", this.OutputFile);
36
37
var args = new List<string>
38
{