diff options
author | Rob Mensching <rob@firegiant.com> | 2021-03-19 11:50:09 -0700 |
---|---|---|
committer | Rob Mensching <rob@firegiant.com> | 2021-03-19 11:52:00 -0700 |
commit | 2587a8b46b705d53156f5cd1bd866f855049081d (patch) | |
tree | 7965a2d5549ee6e8726c113523403d7920564e1f | |
parent | 539c7ceb96d787bf485217d51c7a4bcad712b0b3 (diff) | |
download | wix-2587a8b46b705d53156f5cd1bd866f855049081d.tar.gz wix-2587a8b46b705d53156f5cd1bd866f855049081d.tar.bz2 wix-2587a8b46b705d53156f5cd1bd866f855049081d.zip |
Allow the BuildAndQuery output filename to be set
-rw-r--r-- | src/WixBuildTools.TestSupport/Builder.cs | 11 |
1 files changed, 7 insertions, 4 deletions
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 | |||
8 | 8 | ||
9 | public class Builder | 9 | public class Builder |
10 | { | 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 | { | 12 | { |
13 | this.SourceFolder = sourceFolder; | 13 | this.SourceFolder = sourceFolder; |
14 | this.ExtensionType = extensionType; | 14 | this.ExtensionType = extensionType; |
15 | this.BindPaths = bindPaths; | 15 | this.BindPaths = bindPaths; |
16 | this.OutputFile = outputFile ?? "test.msi"; | ||
16 | } | 17 | } |
17 | 18 | ||
18 | public string[] BindPaths { get; } | 19 | public string[] BindPaths { get; set; } |
19 | 20 | ||
20 | public Type ExtensionType { get; } | 21 | public Type ExtensionType { get; set; } |
22 | |||
23 | public string OutputFile { get; set; } | ||
21 | 24 | ||
22 | public string SourceFolder { get; } | 25 | public string SourceFolder { get; } |
23 | 26 | ||
@@ -29,7 +32,7 @@ namespace WixBuildTools.TestSupport | |||
29 | using (var fs = new DisposableFileSystem()) | 32 | using (var fs = new DisposableFileSystem()) |
30 | { | 33 | { |
31 | var intermediateFolder = fs.GetFolder(); | 34 | var intermediateFolder = fs.GetFolder(); |
32 | var outputPath = Path.Combine(intermediateFolder, @"bin\test.msi"); | 35 | var outputPath = Path.Combine(intermediateFolder, "bin", this.OutputFile); |
33 | 36 | ||
34 | var args = new List<string> | 37 | var args = new List<string> |
35 | { | 38 | { |