diff options
| author | Rob Mensching <rob@firegiant.com> | 2019-05-22 16:26:41 -0700 |
|---|---|---|
| committer | Rob Mensching <rob@firegiant.com> | 2019-05-23 15:43:40 -0700 |
| commit | 97c4c3eaffef05764bd060cb2d78f0be5171d576 (patch) | |
| tree | 4b7e20bc702df77c016c228e3046fb75a8c7e6d2 /src | |
| parent | b36433623fcac28cf620868430d49bc36fca2963 (diff) | |
| download | wix-97c4c3eaffef05764bd060cb2d78f0be5171d576.tar.gz wix-97c4c3eaffef05764bd060cb2d78f0be5171d576.tar.bz2 wix-97c4c3eaffef05764bd060cb2d78f0be5171d576.zip | |
Breakout short and source names in Directory and Shortcut tuples
Diffstat (limited to 'src')
| -rw-r--r-- | src/WixToolset.Data/Tuples/DirectoryTuple.cs | 36 | ||||
| -rw-r--r-- | src/WixToolset.Data/Tuples/ShortcutTuple.cs | 10 | ||||
| -rw-r--r-- | src/WixToolset.Data/Tuples/WixDeltaPatchSymbolPathsTuple.cs | 2 |
3 files changed, 40 insertions, 8 deletions
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 | |||
| 11 | new[] | 11 | new[] |
| 12 | { | 12 | { |
| 13 | new IntermediateFieldDefinition(nameof(DirectoryTupleFields.ParentDirectoryRef), IntermediateFieldType.String), | 13 | new IntermediateFieldDefinition(nameof(DirectoryTupleFields.ParentDirectoryRef), IntermediateFieldType.String), |
| 14 | new IntermediateFieldDefinition(nameof(DirectoryTupleFields.DefaultDir), IntermediateFieldType.String), | 14 | new IntermediateFieldDefinition(nameof(DirectoryTupleFields.Name), IntermediateFieldType.String), |
| 15 | new IntermediateFieldDefinition(nameof(DirectoryTupleFields.ShortName), IntermediateFieldType.String), | ||
| 16 | new IntermediateFieldDefinition(nameof(DirectoryTupleFields.SourceName), IntermediateFieldType.String), | ||
| 17 | new IntermediateFieldDefinition(nameof(DirectoryTupleFields.SourceShortName), IntermediateFieldType.String), | ||
| 15 | new IntermediateFieldDefinition(nameof(DirectoryTupleFields.ComponentGuidGenerationSeed), IntermediateFieldType.String), | 18 | new IntermediateFieldDefinition(nameof(DirectoryTupleFields.ComponentGuidGenerationSeed), IntermediateFieldType.String), |
| 16 | }, | 19 | }, |
| 17 | typeof(DirectoryTuple)); | 20 | typeof(DirectoryTuple)); |
| @@ -23,7 +26,10 @@ namespace WixToolset.Data.Tuples | |||
| 23 | public enum DirectoryTupleFields | 26 | public enum DirectoryTupleFields |
| 24 | { | 27 | { |
| 25 | ParentDirectoryRef, | 28 | ParentDirectoryRef, |
| 26 | DefaultDir, | 29 | Name, |
| 30 | ShortName, | ||
| 31 | SourceName, | ||
| 32 | SourceShortName, | ||
| 27 | ComponentGuidGenerationSeed, | 33 | ComponentGuidGenerationSeed, |
| 28 | } | 34 | } |
| 29 | 35 | ||
| @@ -45,10 +51,28 @@ namespace WixToolset.Data.Tuples | |||
| 45 | set => this.Set((int)DirectoryTupleFields.ParentDirectoryRef, value); | 51 | set => this.Set((int)DirectoryTupleFields.ParentDirectoryRef, value); |
| 46 | } | 52 | } |
| 47 | 53 | ||
| 48 | public string DefaultDir | 54 | public string Name |
| 49 | { | 55 | { |
| 50 | get => (string)this.Fields[(int)DirectoryTupleFields.DefaultDir]; | 56 | get => (string)this.Fields[(int)DirectoryTupleFields.Name]; |
| 51 | set => this.Set((int)DirectoryTupleFields.DefaultDir, value); | 57 | set => this.Set((int)DirectoryTupleFields.Name, value); |
| 58 | } | ||
| 59 | |||
| 60 | public string ShortName | ||
| 61 | { | ||
| 62 | get => (string)this.Fields[(int)DirectoryTupleFields.ShortName]; | ||
| 63 | set => this.Set((int)DirectoryTupleFields.ShortName, value); | ||
| 64 | } | ||
| 65 | |||
| 66 | public string SourceName | ||
| 67 | { | ||
| 68 | get => (string)this.Fields[(int)DirectoryTupleFields.SourceName]; | ||
| 69 | set => this.Set((int)DirectoryTupleFields.SourceName, value); | ||
| 70 | } | ||
| 71 | |||
| 72 | public string SourceShortName | ||
| 73 | { | ||
| 74 | get => (string)this.Fields[(int)DirectoryTupleFields.SourceShortName]; | ||
| 75 | set => this.Set((int)DirectoryTupleFields.SourceShortName, value); | ||
| 52 | } | 76 | } |
| 53 | 77 | ||
| 54 | public string ComponentGuidGenerationSeed | 78 | public string ComponentGuidGenerationSeed |
| @@ -57,4 +81,4 @@ namespace WixToolset.Data.Tuples | |||
| 57 | set => this.Set((int)DirectoryTupleFields.ComponentGuidGenerationSeed, value); | 81 | set => this.Set((int)DirectoryTupleFields.ComponentGuidGenerationSeed, value); |
| 58 | } | 82 | } |
| 59 | } | 83 | } |
| 60 | } \ No newline at end of file | 84 | } |
diff --git a/src/WixToolset.Data/Tuples/ShortcutTuple.cs b/src/WixToolset.Data/Tuples/ShortcutTuple.cs index c2b9e63f..66b98287 100644 --- a/src/WixToolset.Data/Tuples/ShortcutTuple.cs +++ b/src/WixToolset.Data/Tuples/ShortcutTuple.cs | |||
| @@ -12,6 +12,7 @@ namespace WixToolset.Data | |||
| 12 | { | 12 | { |
| 13 | new IntermediateFieldDefinition(nameof(ShortcutTupleFields.DirectoryRef), IntermediateFieldType.String), | 13 | new IntermediateFieldDefinition(nameof(ShortcutTupleFields.DirectoryRef), IntermediateFieldType.String), |
| 14 | new IntermediateFieldDefinition(nameof(ShortcutTupleFields.Name), IntermediateFieldType.String), | 14 | new IntermediateFieldDefinition(nameof(ShortcutTupleFields.Name), IntermediateFieldType.String), |
| 15 | new IntermediateFieldDefinition(nameof(ShortcutTupleFields.ShortName), IntermediateFieldType.String), | ||
| 15 | new IntermediateFieldDefinition(nameof(ShortcutTupleFields.ComponentRef), IntermediateFieldType.String), | 16 | new IntermediateFieldDefinition(nameof(ShortcutTupleFields.ComponentRef), IntermediateFieldType.String), |
| 16 | new IntermediateFieldDefinition(nameof(ShortcutTupleFields.Target), IntermediateFieldType.String), | 17 | new IntermediateFieldDefinition(nameof(ShortcutTupleFields.Target), IntermediateFieldType.String), |
| 17 | new IntermediateFieldDefinition(nameof(ShortcutTupleFields.Arguments), IntermediateFieldType.String), | 18 | new IntermediateFieldDefinition(nameof(ShortcutTupleFields.Arguments), IntermediateFieldType.String), |
| @@ -36,6 +37,7 @@ namespace WixToolset.Data.Tuples | |||
| 36 | { | 37 | { |
| 37 | DirectoryRef, | 38 | DirectoryRef, |
| 38 | Name, | 39 | Name, |
| 40 | ShortName, | ||
| 39 | ComponentRef, | 41 | ComponentRef, |
| 40 | Target, | 42 | Target, |
| 41 | Arguments, | 43 | Arguments, |
| @@ -82,6 +84,12 @@ namespace WixToolset.Data.Tuples | |||
| 82 | set => this.Set((int)ShortcutTupleFields.Name, value); | 84 | set => this.Set((int)ShortcutTupleFields.Name, value); |
| 83 | } | 85 | } |
| 84 | 86 | ||
| 87 | public string ShortName | ||
| 88 | { | ||
| 89 | get => (string)this.Fields[(int)ShortcutTupleFields.ShortName]; | ||
| 90 | set => this.Set((int)ShortcutTupleFields.ShortName, value); | ||
| 91 | } | ||
| 92 | |||
| 85 | public string ComponentRef | 93 | public string ComponentRef |
| 86 | { | 94 | { |
| 87 | get => (string)this.Fields[(int)ShortcutTupleFields.ComponentRef]; | 95 | get => (string)this.Fields[(int)ShortcutTupleFields.ComponentRef]; |
| @@ -160,4 +168,4 @@ namespace WixToolset.Data.Tuples | |||
| 160 | set => this.Set((int)ShortcutTupleFields.DescriptionResourceId, value); | 168 | set => this.Set((int)ShortcutTupleFields.DescriptionResourceId, value); |
| 161 | } | 169 | } |
| 162 | } | 170 | } |
| 163 | } \ No newline at end of file | 171 | } |
diff --git a/src/WixToolset.Data/Tuples/WixDeltaPatchSymbolPathsTuple.cs b/src/WixToolset.Data/Tuples/WixDeltaPatchSymbolPathsTuple.cs index 13a2e1c9..29acf111 100644 --- a/src/WixToolset.Data/Tuples/WixDeltaPatchSymbolPathsTuple.cs +++ b/src/WixToolset.Data/Tuples/WixDeltaPatchSymbolPathsTuple.cs | |||
| @@ -48,7 +48,7 @@ namespace WixToolset.Data.Tuples | |||
| 48 | { | 48 | { |
| 49 | } | 49 | } |
| 50 | 50 | ||
| 51 | public WixDeltaPatchSymbolPathsTuple(SourceLineNumber sourceLineNumber, Identifier id = null) : base(TupleDefinitions.WixDeltaPatchSymbolPaths, sourceLineNumber, null) | 51 | public WixDeltaPatchSymbolPathsTuple(SourceLineNumber sourceLineNumber, Identifier id = null) : base(TupleDefinitions.WixDeltaPatchSymbolPaths, sourceLineNumber, id) |
| 52 | { | 52 | { |
| 53 | } | 53 | } |
| 54 | 54 | ||
