Skip to content

feat(sdk): add the Aspire UnoFeature - #26714

Draft
Kunal22shah wants to merge 2 commits into
masterfrom
dev/ks/sdk-aspire-feature
Draft

Kunal22shah wants to merge 2 commits into
masterfrom
dev/ks/sdk-aspire-feature

Conversation

@Kunal22shah

Copy link
Copy Markdown
Contributor

GitHub Issue: Related to unoplatform/uno.extensions#3309, unoplatform/uno.templates#2449

PR Type:

✨ Feature

What changed? 🚀

Adds an Aspire UnoFeature for the new Uno.Extensions.Aspire package (unoplatform/uno.extensions#3309). The package wires an app run from an Aspire AppHost into service discovery, resilience and telemetry:

  • UnoFeature.Aspire (UnoArea.Extensions), a schema entry, and implicit Uno.Extensions.Aspire and Uno.Extensions.Http.WinUI references.
  • Uno.Extensions.Aspire added to the Extensions group in packages.json, so UnoExtensionsVersion applies to it.
  • Docs: a row in the UnoFeatures table.

The companion templates change (unoplatform/uno.templates#2449) adds an -aspire option that turns this feature on and adds the AppHost.

Important

Draft until Uno.Extensions.Aspire is published. validate-packages-json checks every manifest package on nuget.org and will fail until the package ships and the Extensions group is bumped to a release that includes it. The docs row links to the Aspire how-to, which reaches the docs with the uno.extensions PRs.

Verification

  • Uno.Sdk.csproj builds with 0 warnings.
  • Packed this SDK locally and built an app generated by the updated unoapp template with Aspire in UnoFeatures, for net10.0-desktop, with 0 warnings. Restore resolves Uno.Extensions.Aspire and Uno.Extensions.Http.WinUI through the feature.
  • With the current Extensions group version, restore fails to find Uno.Extensions.Aspire, as the note above says.

PR Checklist ✅

🤖 Generated with Claude Code

@unodevops

Copy link
Copy Markdown
Contributor

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/sdk Categorizes an issue or PR as relevant to the Uno.Sdk kind/documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants