aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSean Hall <r.sean.hall@gmail.com>2020-03-25 17:28:45 +1000
committerSean Hall <r.sean.hall@gmail.com>2020-03-30 21:23:16 +1000
commit39df3cf47aa22abfea57a74b7f985f44cb9beba5 (patch)
tree6ac6f41958936543958e32bcba58bfd65fe37cdf
parent50a0d7358e804138ec766adc107cb1f8762c59b0 (diff)
downloadwix-39df3cf47aa22abfea57a74b7f985f44cb9beba5.tar.gz
wix-39df3cf47aa22abfea57a74b7f985f44cb9beba5.tar.bz2
wix-39df3cf47aa22abfea57a74b7f985f44cb9beba5.zip
Add WixBundleExtensionTuple.
-rw-r--r--src/WixToolset.Data/Tuples/TupleDefinitions.cs4
-rw-r--r--src/WixToolset.Data/Tuples/WixBundleExtensionTuple.cs44
2 files changed, 48 insertions, 0 deletions
diff --git a/src/WixToolset.Data/Tuples/TupleDefinitions.cs b/src/WixToolset.Data/Tuples/TupleDefinitions.cs
index bad8af3f..2bec2d01 100644
--- a/src/WixToolset.Data/Tuples/TupleDefinitions.cs
+++ b/src/WixToolset.Data/Tuples/TupleDefinitions.cs
@@ -133,6 +133,7 @@ namespace WixToolset.Data
133 WixBundleCatalog, 133 WixBundleCatalog,
134 WixBundleContainer, 134 WixBundleContainer,
135 WixBundleExePackage, 135 WixBundleExePackage,
136 WixBundleExtension,
136 WixBundleMsiFeature, 137 WixBundleMsiFeature,
137 WixBundleMsiPackage, 138 WixBundleMsiPackage,
138 WixBundleMsiProperty, 139 WixBundleMsiProperty,
@@ -586,6 +587,9 @@ namespace WixToolset.Data
586 case TupleDefinitionType.WixBundleContainer: 587 case TupleDefinitionType.WixBundleContainer:
587 return TupleDefinitions.WixBundleContainer; 588 return TupleDefinitions.WixBundleContainer;
588 589
590 case TupleDefinitionType.WixBundleExtension:
591 return TupleDefinitions.WixBundleExtension;
592
589 case TupleDefinitionType.WixBundleExePackage: 593 case TupleDefinitionType.WixBundleExePackage:
590 return TupleDefinitions.WixBundleExePackage; 594 return TupleDefinitions.WixBundleExePackage;
591 595
diff --git a/src/WixToolset.Data/Tuples/WixBundleExtensionTuple.cs b/src/WixToolset.Data/Tuples/WixBundleExtensionTuple.cs
new file mode 100644
index 00000000..7df56963
--- /dev/null
+++ b/src/WixToolset.Data/Tuples/WixBundleExtensionTuple.cs
@@ -0,0 +1,44 @@
1// Copyright (c) .NET Foundation and contributors. All rights reserved. Licensed under the Microsoft Reciprocal License. See LICENSE.TXT file in the project root for full license information.
2
3namespace WixToolset.Data
4{
5 using WixToolset.Data.Tuples;
6
7 public static partial class TupleDefinitions
8 {
9 public static readonly IntermediateTupleDefinition WixBundleExtension = new IntermediateTupleDefinition(
10 TupleDefinitionType.WixBundleExtension,
11 new[]
12 {
13 new IntermediateFieldDefinition(nameof(WixBundleExtensionTupleFields.PayloadRef), IntermediateFieldType.String),
14 },
15 typeof(WixBundleExtensionTuple));
16 }
17}
18
19namespace WixToolset.Data.Tuples
20{
21 public enum WixBundleExtensionTupleFields
22 {
23 PayloadRef,
24 }
25
26 public class WixBundleExtensionTuple : IntermediateTuple
27 {
28 public WixBundleExtensionTuple() : base(TupleDefinitions.WixBundleExtension, null, null)
29 {
30 }
31
32 public WixBundleExtensionTuple(SourceLineNumber sourceLineNumber, Identifier id = null) : base(TupleDefinitions.WixBundleExtension, sourceLineNumber, id)
33 {
34 }
35
36 public IntermediateField this[WixBundleExtensionTupleFields index] => this.Fields[(int)index];
37
38 public string PayloadRef
39 {
40 get => (string)this.Fields[(int)WixBundleExtensionTupleFields.PayloadRef];
41 set => this.Set((int)WixBundleExtensionTupleFields.PayloadRef, value);
42 }
43 }
44}