From 39df3cf47aa22abfea57a74b7f985f44cb9beba5 Mon Sep 17 00:00:00 2001 From: Sean Hall Date: Wed, 25 Mar 2020 17:28:45 +1000 Subject: Add WixBundleExtensionTuple. --- src/WixToolset.Data/Tuples/TupleDefinitions.cs | 4 ++ .../Tuples/WixBundleExtensionTuple.cs | 44 ++++++++++++++++++++++ 2 files changed, 48 insertions(+) create mode 100644 src/WixToolset.Data/Tuples/WixBundleExtensionTuple.cs (limited to 'src') 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 WixBundleCatalog, WixBundleContainer, WixBundleExePackage, + WixBundleExtension, WixBundleMsiFeature, WixBundleMsiPackage, WixBundleMsiProperty, @@ -586,6 +587,9 @@ namespace WixToolset.Data case TupleDefinitionType.WixBundleContainer: return TupleDefinitions.WixBundleContainer; + case TupleDefinitionType.WixBundleExtension: + return TupleDefinitions.WixBundleExtension; + case TupleDefinitionType.WixBundleExePackage: return TupleDefinitions.WixBundleExePackage; 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 @@ +// 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. + +namespace WixToolset.Data +{ + using WixToolset.Data.Tuples; + + public static partial class TupleDefinitions + { + public static readonly IntermediateTupleDefinition WixBundleExtension = new IntermediateTupleDefinition( + TupleDefinitionType.WixBundleExtension, + new[] + { + new IntermediateFieldDefinition(nameof(WixBundleExtensionTupleFields.PayloadRef), IntermediateFieldType.String), + }, + typeof(WixBundleExtensionTuple)); + } +} + +namespace WixToolset.Data.Tuples +{ + public enum WixBundleExtensionTupleFields + { + PayloadRef, + } + + public class WixBundleExtensionTuple : IntermediateTuple + { + public WixBundleExtensionTuple() : base(TupleDefinitions.WixBundleExtension, null, null) + { + } + + public WixBundleExtensionTuple(SourceLineNumber sourceLineNumber, Identifier id = null) : base(TupleDefinitions.WixBundleExtension, sourceLineNumber, id) + { + } + + public IntermediateField this[WixBundleExtensionTupleFields index] => this.Fields[(int)index]; + + public string PayloadRef + { + get => (string)this.Fields[(int)WixBundleExtensionTupleFields.PayloadRef]; + set => this.Set((int)WixBundleExtensionTupleFields.PayloadRef, value); + } + } +} -- cgit v1.2.3-55-g6feb