From 97c4c3eaffef05764bd060cb2d78f0be5171d576 Mon Sep 17 00:00:00 2001 From: Rob Mensching Date: Wed, 22 May 2019 16:26:41 -0700 Subject: Breakout short and source names in Directory and Shortcut tuples --- src/WixToolset.Data/Tuples/DirectoryTuple.cs | 36 +++++++++++++++++++++++----- 1 file changed, 30 insertions(+), 6 deletions(-) (limited to 'src/WixToolset.Data/Tuples/DirectoryTuple.cs') diff --git a/src/WixToolset.Data/Tuples/DirectoryTuple.cs b/src/WixToolset.Data/Tuples/DirectoryTuple.cs index dc95f046..51f559aa 100644 --- a/src/WixToolset.Data/Tuples/DirectoryTuple.cs +++ b/src/WixToolset.Data/Tuples/DirectoryTuple.cs @@ -11,7 +11,10 @@ namespace WixToolset.Data new[] { new IntermediateFieldDefinition(nameof(DirectoryTupleFields.ParentDirectoryRef), IntermediateFieldType.String), - new IntermediateFieldDefinition(nameof(DirectoryTupleFields.DefaultDir), IntermediateFieldType.String), + new IntermediateFieldDefinition(nameof(DirectoryTupleFields.Name), IntermediateFieldType.String), + new IntermediateFieldDefinition(nameof(DirectoryTupleFields.ShortName), IntermediateFieldType.String), + new IntermediateFieldDefinition(nameof(DirectoryTupleFields.SourceName), IntermediateFieldType.String), + new IntermediateFieldDefinition(nameof(DirectoryTupleFields.SourceShortName), IntermediateFieldType.String), new IntermediateFieldDefinition(nameof(DirectoryTupleFields.ComponentGuidGenerationSeed), IntermediateFieldType.String), }, typeof(DirectoryTuple)); @@ -23,7 +26,10 @@ namespace WixToolset.Data.Tuples public enum DirectoryTupleFields { ParentDirectoryRef, - DefaultDir, + Name, + ShortName, + SourceName, + SourceShortName, ComponentGuidGenerationSeed, } @@ -45,10 +51,28 @@ namespace WixToolset.Data.Tuples set => this.Set((int)DirectoryTupleFields.ParentDirectoryRef, value); } - public string DefaultDir + public string Name { - get => (string)this.Fields[(int)DirectoryTupleFields.DefaultDir]; - set => this.Set((int)DirectoryTupleFields.DefaultDir, value); + get => (string)this.Fields[(int)DirectoryTupleFields.Name]; + set => this.Set((int)DirectoryTupleFields.Name, value); + } + + public string ShortName + { + get => (string)this.Fields[(int)DirectoryTupleFields.ShortName]; + set => this.Set((int)DirectoryTupleFields.ShortName, value); + } + + public string SourceName + { + get => (string)this.Fields[(int)DirectoryTupleFields.SourceName]; + set => this.Set((int)DirectoryTupleFields.SourceName, value); + } + + public string SourceShortName + { + get => (string)this.Fields[(int)DirectoryTupleFields.SourceShortName]; + set => this.Set((int)DirectoryTupleFields.SourceShortName, value); } public string ComponentGuidGenerationSeed @@ -57,4 +81,4 @@ namespace WixToolset.Data.Tuples set => this.Set((int)DirectoryTupleFields.ComponentGuidGenerationSeed, value); } } -} \ No newline at end of file +} -- cgit v1.2.3-55-g6feb