Skip to content

Commit

Permalink
feat: adding alias for ExtensionsCore
Browse files Browse the repository at this point in the history
  • Loading branch information
dansiegel committed Apr 16, 2024
1 parent fe26b2f commit 7a336be
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 2 deletions.
4 changes: 4 additions & 0 deletions src/Uno.Sdk/Sdk/Sdk.props.buildschema.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
2 changes: 1 addition & 1 deletion src/Uno.Sdk/Tasks/ImplicitPackagesResolver.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down
3 changes: 3 additions & 0 deletions src/Uno.Sdk/UnoFeature.cs
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,9 @@ public enum UnoFeature
[UnoArea(UnoArea.Extensions)]
ExtensionsCore,

[UnoArea(UnoArea.Extensions)]
ThemeService,

[UnoArea(UnoArea.Extensions)]
Hosting,

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
<_UnoProjectSystemPackageReference Include="Uno.Extensions.Configuration" ProjectSystem="true" />
</ItemGroup>

<ItemGroup Condition="$(_UseUnoExtensions) OR $(UnoFeatures.Contains(';ExtensionsCore;'))">
<ItemGroup Condition="$(_UseUnoExtensions) OR $(UnoFeatures.Contains(';ExtensionsCore;')) OR $(UnoFeatures.Contains(';ThemeService;'))">
<_UnoProjectSystemPackageReference Include="Uno.Extensions.Core.WinUI" ProjectSystem="true" />
</ItemGroup>

Expand Down

0 comments on commit 7a336be

Please sign in to comment.