diff options
author | Sean Hall <r.sean.hall@gmail.com> | 2022-01-05 21:51:00 -0600 |
---|---|---|
committer | Sean Hall <r.sean.hall@gmail.com> | 2022-01-06 23:02:07 -0600 |
commit | c2b00d75493798d9f2452d5e5014b14afcb14889 (patch) | |
tree | 7788e6a9caf38ff1e921112cd893e53cccb8efbf /src/test/burn/ForTestingUseOnlyExtension/Symbols/ForTestingUseOnlyBundleSymbol.cs | |
parent | 5b48edfd77da6a7f1c499ad30ea95b66f26ee56d (diff) | |
download | wix-c2b00d75493798d9f2452d5e5014b14afcb14889.tar.gz wix-c2b00d75493798d9f2452d5e5014b14afcb14889.tar.bz2 wix-c2b00d75493798d9f2452d5e5014b14afcb14889.zip |
Always run upgrade related bundles last.
#5128
Diffstat (limited to 'src/test/burn/ForTestingUseOnlyExtension/Symbols/ForTestingUseOnlyBundleSymbol.cs')
-rw-r--r-- | src/test/burn/ForTestingUseOnlyExtension/Symbols/ForTestingUseOnlyBundleSymbol.cs | 47 |
1 files changed, 47 insertions, 0 deletions
diff --git a/src/test/burn/ForTestingUseOnlyExtension/Symbols/ForTestingUseOnlyBundleSymbol.cs b/src/test/burn/ForTestingUseOnlyExtension/Symbols/ForTestingUseOnlyBundleSymbol.cs new file mode 100644 index 00000000..a17dfe31 --- /dev/null +++ b/src/test/burn/ForTestingUseOnlyExtension/Symbols/ForTestingUseOnlyBundleSymbol.cs | |||
@@ -0,0 +1,47 @@ | |||
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 ForTestingUseOnly | ||
4 | { | ||
5 | using WixToolset.Data; | ||
6 | using ForTestingUseOnly.Symbols; | ||
7 | |||
8 | public static partial class ForTestingUseOnlySymbolDefinitions | ||
9 | { | ||
10 | public static readonly IntermediateSymbolDefinition ForTestingUseOnlyBundle = new IntermediateSymbolDefinition( | ||
11 | ForTestingUseOnlySymbolDefinitionType.ForTestingUseOnlyBundle.ToString(), | ||
12 | new[] | ||
13 | { | ||
14 | new IntermediateFieldDefinition(nameof(ForTestingUseOnlyBundleSymbolFields.BundleId), IntermediateFieldType.String), | ||
15 | }, | ||
16 | typeof(ForTestingUseOnlyBundleSymbol)); | ||
17 | } | ||
18 | } | ||
19 | |||
20 | namespace ForTestingUseOnly.Symbols | ||
21 | { | ||
22 | using WixToolset.Data; | ||
23 | |||
24 | public enum ForTestingUseOnlyBundleSymbolFields | ||
25 | { | ||
26 | BundleId, | ||
27 | } | ||
28 | |||
29 | public class ForTestingUseOnlyBundleSymbol : IntermediateSymbol | ||
30 | { | ||
31 | public ForTestingUseOnlyBundleSymbol() : base(ForTestingUseOnlySymbolDefinitions.ForTestingUseOnlyBundle, null, null) | ||
32 | { | ||
33 | } | ||
34 | |||
35 | public ForTestingUseOnlyBundleSymbol(SourceLineNumber sourceLineNumber, Identifier id = null) : base(ForTestingUseOnlySymbolDefinitions.ForTestingUseOnlyBundle, sourceLineNumber, id) | ||
36 | { | ||
37 | } | ||
38 | |||
39 | public IntermediateField this[ForTestingUseOnlyBundleSymbolFields index] => this.Fields[(int)index]; | ||
40 | |||
41 | public string BundleId | ||
42 | { | ||
43 | get => this.Fields[(int)ForTestingUseOnlyBundleSymbolFields.BundleId].AsString(); | ||
44 | set => this.Set((int)ForTestingUseOnlyBundleSymbolFields.BundleId, value); | ||
45 | } | ||
46 | } | ||
47 | } | ||