diff --git a/src/Uno.Sdk/Sdk/Sdk.props.buildschema.json b/src/Uno.Sdk/Sdk/Sdk.props.buildschema.json index 06d275a561b2..2c0393949adb 100644 --- a/src/Uno.Sdk/Sdk/Sdk.props.buildschema.json +++ b/src/Uno.Sdk/Sdk/Sdk.props.buildschema.json @@ -305,6 +305,10 @@ "description": "Adds the Uno.Extensions.Core.WinUI package.", "helpUrl": "https://aka.platform.uno/feature-extensions-core" }, + "ThemeService": { + "description": "Adds the Uno.Extensions.Core.WinUI package.", + "helpUrl": "https://aka.platform.uno/feature-extensions-core" + }, "Hosting": { "description": "Adds support for Dependency Injection using Uno.Extensions.Hosting packages.", "helpUrl": "https://aka.platform.uno/feature-hosting" diff --git a/src/Uno.Sdk/Tasks/ImplicitPackagesResolver.cs b/src/Uno.Sdk/Tasks/ImplicitPackagesResolver.cs index c2658555177a..49907a373d18 100644 --- a/src/Uno.Sdk/Tasks/ImplicitPackagesResolver.cs +++ b/src/Uno.Sdk/Tasks/ImplicitPackagesResolver.cs @@ -168,7 +168,7 @@ public void AddUnoExtensionsPackages() AddPackage("Uno.Extensions.Configuration", UnoExtensionsVersion); } - if (useExtensions || HasFeature(UnoFeature.ExtensionsCore)) + if (useExtensions || HasFeature(UnoFeature.ExtensionsCore) || HasFeature(UnoFeature.ThemeService)) { AddPackage("Uno.Extensions.Core.WinUI", UnoExtensionsVersion); } diff --git a/src/Uno.Sdk/UnoFeature.cs b/src/Uno.Sdk/UnoFeature.cs index 7ceebc56757a..c6a317b3b935 100644 --- a/src/Uno.Sdk/UnoFeature.cs +++ b/src/Uno.Sdk/UnoFeature.cs @@ -34,6 +34,9 @@ public enum UnoFeature [UnoArea(UnoArea.Extensions)] ExtensionsCore, + [UnoArea(UnoArea.Extensions)] + ThemeService, + [UnoArea(UnoArea.Extensions)] Hosting, diff --git a/src/Uno.Sdk/targets/Uno.Extensions.Implicit.Packages.ProjectSystem.targets b/src/Uno.Sdk/targets/Uno.Extensions.Implicit.Packages.ProjectSystem.targets index db1ba3914303..9082b31a4806 100644 --- a/src/Uno.Sdk/targets/Uno.Extensions.Implicit.Packages.ProjectSystem.targets +++ b/src/Uno.Sdk/targets/Uno.Extensions.Implicit.Packages.ProjectSystem.targets @@ -36,7 +36,7 @@ <_UnoProjectSystemPackageReference Include="Uno.Extensions.Configuration" ProjectSystem="true" /> - + <_UnoProjectSystemPackageReference Include="Uno.Extensions.Core.WinUI" ProjectSystem="true" />