diff options
Diffstat (limited to 'src/WixToolset.Data/Tuples/WixBuildInfoTuple.cs')
-rw-r--r-- | src/WixToolset.Data/Tuples/WixBuildInfoTuple.cs | 68 |
1 files changed, 68 insertions, 0 deletions
diff --git a/src/WixToolset.Data/Tuples/WixBuildInfoTuple.cs b/src/WixToolset.Data/Tuples/WixBuildInfoTuple.cs new file mode 100644 index 00000000..d71cbbaf --- /dev/null +++ b/src/WixToolset.Data/Tuples/WixBuildInfoTuple.cs | |||
@@ -0,0 +1,68 @@ | |||
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 | |||
3 | namespace WixToolset.Data | ||
4 | { | ||
5 | using WixToolset.Data.Tuples; | ||
6 | |||
7 | public static partial class TupleDefinitions | ||
8 | { | ||
9 | public static readonly IntermediateTupleDefinition WixBuildInfo = new IntermediateTupleDefinition( | ||
10 | TupleDefinitionType.WixBuildInfo, | ||
11 | new[] | ||
12 | { | ||
13 | new IntermediateFieldDefinition(nameof(WixBuildInfoTupleFields.WixVersion), IntermediateFieldType.String), | ||
14 | new IntermediateFieldDefinition(nameof(WixBuildInfoTupleFields.WixOutputFile), IntermediateFieldType.String), | ||
15 | new IntermediateFieldDefinition(nameof(WixBuildInfoTupleFields.WixProjectFile), IntermediateFieldType.String), | ||
16 | new IntermediateFieldDefinition(nameof(WixBuildInfoTupleFields.WixPdbFile), IntermediateFieldType.String), | ||
17 | }, | ||
18 | typeof(WixBuildInfoTuple)); | ||
19 | } | ||
20 | } | ||
21 | |||
22 | namespace WixToolset.Data.Tuples | ||
23 | { | ||
24 | public enum WixBuildInfoTupleFields | ||
25 | { | ||
26 | WixVersion, | ||
27 | WixOutputFile, | ||
28 | WixProjectFile, | ||
29 | WixPdbFile, | ||
30 | } | ||
31 | |||
32 | public class WixBuildInfoTuple : IntermediateTuple | ||
33 | { | ||
34 | public WixBuildInfoTuple() : base(TupleDefinitions.WixBuildInfo, null, null) | ||
35 | { | ||
36 | } | ||
37 | |||
38 | public WixBuildInfoTuple(SourceLineNumber sourceLineNumber, Identifier id = null) : base(TupleDefinitions.WixBuildInfo, sourceLineNumber, id) | ||
39 | { | ||
40 | } | ||
41 | |||
42 | public IntermediateField this[WixBuildInfoTupleFields index] => this.Fields[(int)index]; | ||
43 | |||
44 | public string WixVersion | ||
45 | { | ||
46 | get => (string)this.Fields[(int)WixBuildInfoTupleFields.WixVersion]?.Value; | ||
47 | set => this.Set((int)WixBuildInfoTupleFields.WixVersion, value); | ||
48 | } | ||
49 | |||
50 | public string WixOutputFile | ||
51 | { | ||
52 | get => (string)this.Fields[(int)WixBuildInfoTupleFields.WixOutputFile]?.Value; | ||
53 | set => this.Set((int)WixBuildInfoTupleFields.WixOutputFile, value); | ||
54 | } | ||
55 | |||
56 | public string WixProjectFile | ||
57 | { | ||
58 | get => (string)this.Fields[(int)WixBuildInfoTupleFields.WixProjectFile]?.Value; | ||
59 | set => this.Set((int)WixBuildInfoTupleFields.WixProjectFile, value); | ||
60 | } | ||
61 | |||
62 | public string WixPdbFile | ||
63 | { | ||
64 | get => (string)this.Fields[(int)WixBuildInfoTupleFields.WixPdbFile]?.Value; | ||
65 | set => this.Set((int)WixBuildInfoTupleFields.WixPdbFile, value); | ||
66 | } | ||
67 | } | ||
68 | } \ No newline at end of file | ||