diff options
author | Bob Arnson <bob@firegiant.com> | 2023-12-17 21:06:30 -0500 |
---|---|---|
committer | Bob Arnson <github@bobs.org> | 2023-12-26 14:56:27 -0500 |
commit | 1c249dde054a6dd261c2b8f55e2173fdbfe64c41 (patch) | |
tree | 5f6d0e72bbbd59197fa4f35a11c9d3f7db5b631d /src/api | |
parent | 6f4fda58d9303c889024e20ee39b1374ed0f02e1 (diff) | |
download | wix-1c249dde054a6dd261c2b8f55e2173fdbfe64c41.tar.gz wix-1c249dde054a6dd261c2b8f55e2173fdbfe64c41.tar.bz2 wix-1c249dde054a6dd261c2b8f55e2173fdbfe64c41.zip |
Implement default-feature feature.
Use the WiX stdlib.
See WIP at wixtoolset/issues#7581.
Diffstat (limited to 'src/api')
-rw-r--r-- | src/api/wix/WixToolset.Data/WixStandardLibrary.cs | 14 | ||||
-rw-r--r-- | src/api/wix/WixToolset.Data/WixStandardLibraryIdentifiers.cs | 5 |
2 files changed, 19 insertions, 0 deletions
diff --git a/src/api/wix/WixToolset.Data/WixStandardLibrary.cs b/src/api/wix/WixToolset.Data/WixStandardLibrary.cs index c5c9d8d4..3758e5b1 100644 --- a/src/api/wix/WixToolset.Data/WixStandardLibrary.cs +++ b/src/api/wix/WixToolset.Data/WixStandardLibrary.cs | |||
@@ -83,6 +83,20 @@ namespace WixToolset.Data | |||
83 | yield return section; | 83 | yield return section; |
84 | } | 84 | } |
85 | 85 | ||
86 | // Default feature. | ||
87 | { | ||
88 | var symbol = new FeatureSymbol(sourceLineNumber, new Identifier(AccessModifier.Virtual, WixStandardLibraryIdentifiers.DefaultFeatureName)) | ||
89 | { | ||
90 | Level = 1, | ||
91 | Display = 0, | ||
92 | InstallDefault = FeatureInstallDefault.Local, | ||
93 | }; | ||
94 | |||
95 | var section = CreateSectionAroundSymbol(symbol); | ||
96 | |||
97 | yield return section; | ||
98 | } | ||
99 | |||
86 | // Package References. | 100 | // Package References. |
87 | { | 101 | { |
88 | var section = CreateSection(WixStandardLibraryIdentifiers.WixStandardPackageReferences); | 102 | var section = CreateSection(WixStandardLibraryIdentifiers.WixStandardPackageReferences); |
diff --git a/src/api/wix/WixToolset.Data/WixStandardLibraryIdentifiers.cs b/src/api/wix/WixToolset.Data/WixStandardLibraryIdentifiers.cs index 8c4ac08e..6579a42b 100644 --- a/src/api/wix/WixToolset.Data/WixStandardLibraryIdentifiers.cs +++ b/src/api/wix/WixToolset.Data/WixStandardLibraryIdentifiers.cs | |||
@@ -16,5 +16,10 @@ namespace WixToolset.Data | |||
16 | /// WiX Standard references for modules. | 16 | /// WiX Standard references for modules. |
17 | /// </summary> | 17 | /// </summary> |
18 | public static readonly string WixStandardModuleReferences = "WixStandardModuleReferences"; | 18 | public static readonly string WixStandardModuleReferences = "WixStandardModuleReferences"; |
19 | |||
20 | /// <summary> | ||
21 | /// Default feature name. | ||
22 | /// </summary> | ||
23 | public static readonly string DefaultFeatureName = "WixDefaultFeature"; | ||
19 | } | 24 | } |
20 | } | 25 | } |