diff options
author | Staffan Gustafsson <staffangu@outlook.com> | 2022-11-30 17:15:12 +0100 |
---|---|---|
committer | Sean Hall <r.sean.hall@gmail.com> | 2023-01-18 18:10:56 -0600 |
commit | 853887b4e84df1965794802b7683f3a9aca3e930 (patch) | |
tree | c2db272b63381c94186712c0029ed0e000ec3391 /src/ext/NetFx/wixext/Symbols | |
parent | 9f368d76848e31d21ec3c193fa8c92849b1362a1 (diff) | |
download | wix-853887b4e84df1965794802b7683f3a9aca3e930.tar.gz wix-853887b4e84df1965794802b7683f3a9aca3e930.tar.bz2 wix-853887b4e84df1965794802b7683f3a9aca3e930.zip |
Adding support for DotNetCoreSdkSearch and DotNetCoreSdkCompatibilityCheck
Diffstat (limited to 'src/ext/NetFx/wixext/Symbols')
3 files changed, 88 insertions, 19 deletions
diff --git a/src/ext/NetFx/wixext/Symbols/NetFxDotNetCompatibilityCheckSymbol.cs b/src/ext/NetFx/wixext/Symbols/NetFxDotNetCompatibilityCheckSymbol.cs index a46cf17f..ea1b16c5 100644 --- a/src/ext/NetFx/wixext/Symbols/NetFxDotNetCompatibilityCheckSymbol.cs +++ b/src/ext/NetFx/wixext/Symbols/NetFxDotNetCompatibilityCheckSymbol.cs | |||
@@ -11,11 +11,11 @@ namespace WixToolset.Netfx | |||
11 | NetfxSymbolDefinitionType.NetFxDotNetCompatibilityCheck.ToString(), | 11 | NetfxSymbolDefinitionType.NetFxDotNetCompatibilityCheck.ToString(), |
12 | new[] | 12 | new[] |
13 | { | 13 | { |
14 | new IntermediateFieldDefinition(nameof(NetFxDotNetCompatibilityCheckSymbollFields.RuntimeType), IntermediateFieldType.String), | 14 | new IntermediateFieldDefinition(nameof(NetFxDotNetCompatibilityCheckSymbolFields.RuntimeType), IntermediateFieldType.String), |
15 | new IntermediateFieldDefinition(nameof(NetFxDotNetCompatibilityCheckSymbollFields.Platform), IntermediateFieldType.String), | 15 | new IntermediateFieldDefinition(nameof(NetFxDotNetCompatibilityCheckSymbolFields.Platform), IntermediateFieldType.String), |
16 | new IntermediateFieldDefinition(nameof(NetFxDotNetCompatibilityCheckSymbollFields.Version), IntermediateFieldType.String), | 16 | new IntermediateFieldDefinition(nameof(NetFxDotNetCompatibilityCheckSymbolFields.Version), IntermediateFieldType.String), |
17 | new IntermediateFieldDefinition(nameof(NetFxDotNetCompatibilityCheckSymbollFields.RollForward), IntermediateFieldType.String), | 17 | new IntermediateFieldDefinition(nameof(NetFxDotNetCompatibilityCheckSymbolFields.RollForward), IntermediateFieldType.String), |
18 | new IntermediateFieldDefinition(nameof(NetFxDotNetCompatibilityCheckSymbollFields.Property), IntermediateFieldType.String), | 18 | new IntermediateFieldDefinition(nameof(NetFxDotNetCompatibilityCheckSymbolFields.Property), IntermediateFieldType.String), |
19 | }, | 19 | }, |
20 | typeof(NetFxDotNetCompatibilityCheckSymbol)); | 20 | typeof(NetFxDotNetCompatibilityCheckSymbol)); |
21 | } | 21 | } |
@@ -25,7 +25,7 @@ namespace WixToolset.Netfx.Symbols | |||
25 | { | 25 | { |
26 | using WixToolset.Data; | 26 | using WixToolset.Data; |
27 | 27 | ||
28 | public enum NetFxDotNetCompatibilityCheckSymbollFields | 28 | public enum NetFxDotNetCompatibilityCheckSymbolFields |
29 | { | 29 | { |
30 | RuntimeType, | 30 | RuntimeType, |
31 | Platform, | 31 | Platform, |
@@ -44,36 +44,36 @@ namespace WixToolset.Netfx.Symbols | |||
44 | { | 44 | { |
45 | } | 45 | } |
46 | 46 | ||
47 | public IntermediateField this[NetFxDotNetCompatibilityCheckSymbollFields index] => this.Fields[(int)index]; | 47 | public IntermediateField this[NetFxDotNetCompatibilityCheckSymbolFields index] => this.Fields[(int)index]; |
48 | 48 | ||
49 | public string RuntimeType | 49 | public string RuntimeType |
50 | { | 50 | { |
51 | get => this.Fields[(int)NetFxDotNetCompatibilityCheckSymbollFields.RuntimeType].AsString(); | 51 | get => this.Fields[(int)NetFxDotNetCompatibilityCheckSymbolFields.RuntimeType].AsString(); |
52 | set => this.Set((int)NetFxDotNetCompatibilityCheckSymbollFields.RuntimeType, value); | 52 | set => this.Set((int)NetFxDotNetCompatibilityCheckSymbolFields.RuntimeType, value); |
53 | } | 53 | } |
54 | 54 | ||
55 | public string Platform | 55 | public string Platform |
56 | { | 56 | { |
57 | get => this.Fields[(int)NetFxDotNetCompatibilityCheckSymbollFields.Platform].AsString(); | 57 | get => this.Fields[(int)NetFxDotNetCompatibilityCheckSymbolFields.Platform].AsString(); |
58 | set => this.Set((int)NetFxDotNetCompatibilityCheckSymbollFields.Platform, value); | 58 | set => this.Set((int)NetFxDotNetCompatibilityCheckSymbolFields.Platform, value); |
59 | } | 59 | } |
60 | 60 | ||
61 | public string Version | 61 | public string Version |
62 | { | 62 | { |
63 | get => this.Fields[(int)NetFxDotNetCompatibilityCheckSymbollFields.Version].AsString(); | 63 | get => this.Fields[(int)NetFxDotNetCompatibilityCheckSymbolFields.Version].AsString(); |
64 | set => this.Set((int)NetFxDotNetCompatibilityCheckSymbollFields.Version, value); | 64 | set => this.Set((int)NetFxDotNetCompatibilityCheckSymbolFields.Version, value); |
65 | } | 65 | } |
66 | 66 | ||
67 | public string RollForward | 67 | public string RollForward |
68 | { | 68 | { |
69 | get => this.Fields[(int)NetFxDotNetCompatibilityCheckSymbollFields.RollForward].AsString(); | 69 | get => this.Fields[(int)NetFxDotNetCompatibilityCheckSymbolFields.RollForward].AsString(); |
70 | set => this.Set((int)NetFxDotNetCompatibilityCheckSymbollFields.RollForward, value); | 70 | set => this.Set((int)NetFxDotNetCompatibilityCheckSymbolFields.RollForward, value); |
71 | } | 71 | } |
72 | 72 | ||
73 | public string Property | 73 | public string Property |
74 | { | 74 | { |
75 | get => this.Fields[(int)NetFxDotNetCompatibilityCheckSymbollFields.Property].AsString(); | 75 | get => this.Fields[(int)NetFxDotNetCompatibilityCheckSymbolFields.Property].AsString(); |
76 | set => this.Set((int)NetFxDotNetCompatibilityCheckSymbollFields.Property, value); | 76 | set => this.Set((int)NetFxDotNetCompatibilityCheckSymbolFields.Property, value); |
77 | } | 77 | } |
78 | } | 78 | } |
79 | } | 79 | } |
diff --git a/src/ext/NetFx/wixext/Symbols/NetFxNetCoreSearchSdkSymbol.cs b/src/ext/NetFx/wixext/Symbols/NetFxNetCoreSearchSdkSymbol.cs new file mode 100644 index 00000000..86b750ea --- /dev/null +++ b/src/ext/NetFx/wixext/Symbols/NetFxNetCoreSearchSdkSymbol.cs | |||
@@ -0,0 +1,64 @@ | |||
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.Netfx | ||
4 | { | ||
5 | using WixToolset.Data; | ||
6 | using WixToolset.Netfx.Symbols; | ||
7 | |||
8 | public static partial class NetfxSymbolDefinitions | ||
9 | { | ||
10 | public static readonly IntermediateSymbolDefinition NetFxNetCoreSdkSearch = new IntermediateSymbolDefinition( | ||
11 | NetfxSymbolDefinitionType.NetFxNetCoreSdkSearch.ToString(), | ||
12 | new[] | ||
13 | { | ||
14 | new IntermediateFieldDefinition(nameof(NetFxNetCoreSdkSearchSymbolFields.Platform), IntermediateFieldType.Number), | ||
15 | new IntermediateFieldDefinition(nameof(NetFxNetCoreSdkSearchSymbolFields.Version), IntermediateFieldType.String), | ||
16 | }, | ||
17 | typeof(NetFxNetCoreSearchSymbol)); | ||
18 | } | ||
19 | } | ||
20 | |||
21 | namespace WixToolset.Netfx.Symbols | ||
22 | { | ||
23 | using WixToolset.Data; | ||
24 | |||
25 | |||
26 | public enum NetCoreSdkSearchPlatform | ||
27 | { | ||
28 | X86, | ||
29 | X64, | ||
30 | Arm64, | ||
31 | } | ||
32 | |||
33 | public enum NetFxNetCoreSdkSearchSymbolFields | ||
34 | { | ||
35 | Platform, | ||
36 | Version, | ||
37 | } | ||
38 | |||
39 | |||
40 | public class NetFxNetCoreSdkSearchSymbol : IntermediateSymbol | ||
41 | { | ||
42 | public NetFxNetCoreSdkSearchSymbol() : base(NetfxSymbolDefinitions.NetFxNetCoreSdkSearch, null, null) | ||
43 | { | ||
44 | } | ||
45 | |||
46 | public NetFxNetCoreSdkSearchSymbol(SourceLineNumber sourceLineNumber, Identifier id = null) : base(NetfxSymbolDefinitions.NetFxNetCoreSdkSearch, sourceLineNumber, id) | ||
47 | { | ||
48 | } | ||
49 | |||
50 | public IntermediateField this[NetFxNetCoreSdkSearchSymbolFields index] => this.Fields[(int)index]; | ||
51 | |||
52 | public NetCoreSdkSearchPlatform Platform | ||
53 | { | ||
54 | get => (NetCoreSdkSearchPlatform)this.Fields[(int)NetFxNetCoreSdkSearchSymbolFields.Platform].AsNumber(); | ||
55 | set => this.Set((int)NetFxNetCoreSdkSearchSymbolFields.Platform, (int)value); | ||
56 | } | ||
57 | |||
58 | public string Version | ||
59 | { | ||
60 | get => this.Fields[(int)NetFxNetCoreSdkSearchSymbolFields.Version].AsString(); | ||
61 | set => this.Set((int)NetFxNetCoreSdkSearchSymbolFields.Version, value); | ||
62 | } | ||
63 | } | ||
64 | } | ||
diff --git a/src/ext/NetFx/wixext/Symbols/NetfxSymbolDefinitions.cs b/src/ext/NetFx/wixext/Symbols/NetfxSymbolDefinitions.cs index ad729dd4..00c52f9e 100644 --- a/src/ext/NetFx/wixext/Symbols/NetfxSymbolDefinitions.cs +++ b/src/ext/NetFx/wixext/Symbols/NetfxSymbolDefinitions.cs | |||
@@ -10,7 +10,8 @@ namespace WixToolset.Netfx | |||
10 | { | 10 | { |
11 | NetFxNativeImage, | 11 | NetFxNativeImage, |
12 | NetFxNetCoreSearch, | 12 | NetFxNetCoreSearch, |
13 | NetFxDotNetCompatibilityCheck | 13 | NetFxNetCoreSdkSearch, |
14 | NetFxDotNetCompatibilityCheck, | ||
14 | } | 15 | } |
15 | 16 | ||
16 | public static partial class NetfxSymbolDefinitions | 17 | public static partial class NetfxSymbolDefinitions |
@@ -36,7 +37,10 @@ namespace WixToolset.Netfx | |||
36 | 37 | ||
37 | case NetfxSymbolDefinitionType.NetFxNetCoreSearch: | 38 | case NetfxSymbolDefinitionType.NetFxNetCoreSearch: |
38 | return NetfxSymbolDefinitions.NetFxNetCoreSearch; | 39 | return NetfxSymbolDefinitions.NetFxNetCoreSearch; |
39 | 40 | ||
41 | case NetfxSymbolDefinitionType.NetFxNetCoreSdkSearch: | ||
42 | return NetfxSymbolDefinitions.NetFxNetCoreSdkSearch; | ||
43 | |||
40 | case NetfxSymbolDefinitionType.NetFxDotNetCompatibilityCheck: | 44 | case NetfxSymbolDefinitionType.NetFxDotNetCompatibilityCheck: |
41 | return NetfxSymbolDefinitions.NetFxDotNetCompatibilityCheck; | 45 | return NetfxSymbolDefinitions.NetFxDotNetCompatibilityCheck; |
42 | 46 | ||
@@ -48,6 +52,7 @@ namespace WixToolset.Netfx | |||
48 | static NetfxSymbolDefinitions() | 52 | static NetfxSymbolDefinitions() |
49 | { | 53 | { |
50 | NetFxNetCoreSearch.AddTag(BurnConstants.BundleExtensionSearchSymbolDefinitionTag); | 54 | NetFxNetCoreSearch.AddTag(BurnConstants.BundleExtensionSearchSymbolDefinitionTag); |
55 | NetFxNetCoreSdkSearch.AddTag(BurnConstants.BundleExtensionSearchSymbolDefinitionTag); | ||
51 | } | 56 | } |
52 | } | 57 | } |
53 | } | 58 | } |