aboutsummaryrefslogtreecommitdiff
path: root/src/wixext/Tuples
diff options
context:
space:
mode:
authorBob Arnson <bob@joyofsetup.com>2019-10-24 17:16:31 -0400
committerBob Arnson <bob@firegiant.com>2019-10-24 17:20:04 -0400
commit014bc7918c05f01f819c07fac6e502e0f542a222 (patch)
treed95b7312a2b1afeda1115f304f5c7a394f055c83 /src/wixext/Tuples
parent5ab9ec85e0f5c403631e3f054645ba8c7dcc058d (diff)
downloadwix-014bc7918c05f01f819c07fac6e502e0f542a222.tar.gz
wix-014bc7918c05f01f819c07fac6e502e0f542a222.tar.bz2
wix-014bc7918c05f01f819c07fac6e502e0f542a222.zip
Modernize tuples; update to latest dependencies.
Diffstat (limited to 'src/wixext/Tuples')
-rw-r--r--src/wixext/Tuples/NetFxNativeImageTuple.cs31
-rw-r--r--src/wixext/Tuples/NetfxTupleDefinitions.cs9
2 files changed, 16 insertions, 24 deletions
diff --git a/src/wixext/Tuples/NetFxNativeImageTuple.cs b/src/wixext/Tuples/NetFxNativeImageTuple.cs
index af507137..51211f75 100644
--- a/src/wixext/Tuples/NetFxNativeImageTuple.cs
+++ b/src/wixext/Tuples/NetFxNativeImageTuple.cs
@@ -6,12 +6,11 @@ namespace WixToolset.Netfx.Tuples
6 6
7 public enum NetFxNativeImageTupleFields 7 public enum NetFxNativeImageTupleFields
8 { 8 {
9 NetFxNativeImage, 9 FileRef,
10 File_,
11 Priority, 10 Priority,
12 Attributes, 11 Attributes,
13 File_Application, 12 ApplicationFileRef,
14 Directory_ApplicationBase, 13 ApplicationBaseDirectoryRef,
15 } 14 }
16 15
17 public class NetFxNativeImageTuple : IntermediateTuple 16 public class NetFxNativeImageTuple : IntermediateTuple
@@ -26,16 +25,10 @@ namespace WixToolset.Netfx.Tuples
26 25
27 public IntermediateField this[NetFxNativeImageTupleFields index] => this.Fields[(int)index]; 26 public IntermediateField this[NetFxNativeImageTupleFields index] => this.Fields[(int)index];
28 27
29 public string NetFxNativeImage 28 public string FileRef
30 { 29 {
31 get => this.Fields[(int)NetFxNativeImageTupleFields.NetFxNativeImage].AsString(); 30 get => this.Fields[(int)NetFxNativeImageTupleFields.FileRef].AsString();
32 set => this.Set((int)NetFxNativeImageTupleFields.NetFxNativeImage, value); 31 set => this.Set((int)NetFxNativeImageTupleFields.FileRef, value);
33 }
34
35 public string File_
36 {
37 get => this.Fields[(int)NetFxNativeImageTupleFields.File_].AsString();
38 set => this.Set((int)NetFxNativeImageTupleFields.File_, value);
39 } 32 }
40 33
41 public int Priority 34 public int Priority
@@ -50,16 +43,16 @@ namespace WixToolset.Netfx.Tuples
50 set => this.Set((int)NetFxNativeImageTupleFields.Attributes, value); 43 set => this.Set((int)NetFxNativeImageTupleFields.Attributes, value);
51 } 44 }
52 45
53 public string File_Application 46 public string ApplicationFileRef
54 { 47 {
55 get => this.Fields[(int)NetFxNativeImageTupleFields.File_Application].AsString(); 48 get => this.Fields[(int)NetFxNativeImageTupleFields.ApplicationFileRef].AsString();
56 set => this.Set((int)NetFxNativeImageTupleFields.File_Application, value); 49 set => this.Set((int)NetFxNativeImageTupleFields.ApplicationFileRef, value);
57 } 50 }
58 51
59 public string Directory_ApplicationBase 52 public string ApplicationBaseDirectoryRef
60 { 53 {
61 get => this.Fields[(int)NetFxNativeImageTupleFields.Directory_ApplicationBase].AsString(); 54 get => this.Fields[(int)NetFxNativeImageTupleFields.ApplicationBaseDirectoryRef].AsString();
62 set => this.Set((int)NetFxNativeImageTupleFields.Directory_ApplicationBase, value); 55 set => this.Set((int)NetFxNativeImageTupleFields.ApplicationBaseDirectoryRef, value);
63 } 56 }
64 } 57 }
65} \ No newline at end of file 58} \ No newline at end of file
diff --git a/src/wixext/Tuples/NetfxTupleDefinitions.cs b/src/wixext/Tuples/NetfxTupleDefinitions.cs
index aa584b38..9b617279 100644
--- a/src/wixext/Tuples/NetfxTupleDefinitions.cs
+++ b/src/wixext/Tuples/NetfxTupleDefinitions.cs
@@ -1,4 +1,4 @@
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. 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 2
3namespace WixToolset.Netfx.Tuples 3namespace WixToolset.Netfx.Tuples
4{ 4{
@@ -15,12 +15,11 @@ namespace WixToolset.Netfx.Tuples
15 NetfxTupleDefinitionNames.NetFxNativeImage, 15 NetfxTupleDefinitionNames.NetFxNativeImage,
16 new[] 16 new[]
17 { 17 {
18 new IntermediateFieldDefinition(nameof(NetFxNativeImageTupleFields.NetFxNativeImage), IntermediateFieldType.String), 18 new IntermediateFieldDefinition(nameof(NetFxNativeImageTupleFields.FileRef), IntermediateFieldType.String),
19 new IntermediateFieldDefinition(nameof(NetFxNativeImageTupleFields.File_), IntermediateFieldType.String),
20 new IntermediateFieldDefinition(nameof(NetFxNativeImageTupleFields.Priority), IntermediateFieldType.Number), 19 new IntermediateFieldDefinition(nameof(NetFxNativeImageTupleFields.Priority), IntermediateFieldType.Number),
21 new IntermediateFieldDefinition(nameof(NetFxNativeImageTupleFields.Attributes), IntermediateFieldType.Number), 20 new IntermediateFieldDefinition(nameof(NetFxNativeImageTupleFields.Attributes), IntermediateFieldType.Number),
22 new IntermediateFieldDefinition(nameof(NetFxNativeImageTupleFields.File_Application), IntermediateFieldType.String), 21 new IntermediateFieldDefinition(nameof(NetFxNativeImageTupleFields.ApplicationFileRef), IntermediateFieldType.String),
23 new IntermediateFieldDefinition(nameof(NetFxNativeImageTupleFields.Directory_ApplicationBase), IntermediateFieldType.String), 22 new IntermediateFieldDefinition(nameof(NetFxNativeImageTupleFields.ApplicationBaseDirectoryRef), IntermediateFieldType.String),
24 }, 23 },
25 typeof(NetFxNativeImageTuple)); 24 typeof(NetFxNativeImageTuple));
26 } 25 }