Skip to content

fix(devserver): find add-ins via the solution's projects (backport #25700) - #25742

Merged
agneszitte merged 2 commits into
servicing/6.8from
mergify/bp/servicing/6.8/pr-25700
Nov 3, 2026
Merged

agneszitte merged 2 commits into
servicing/6.8from
mergify/bp/servicing/6.8/pr-25700

Conversation

@mergify

@mergify mergify Bot commented Oct 27, 2026

Copy link
Copy Markdown
Contributor

GitHub Issue: closes #24311

Part of #25524, the ZiiDMS report. #25613 makes the selected solution authoritative and lists add-in discovery from that solution as out of scope; this PR is that piece.

PR Type:

🐞 Bugfix

What changed? 🚀

Add-in discovery read project.assets.json from just two places: the workspace root's own obj folder, and the obj folder of each immediate subdirectory. The workspace root is the folder of the nearest global.json. An app under src/MyApp/ is two levels down, which is a very common layout, so its restored package versions were never read. TargetsAddInResolver then resolved add-ins from the Uno SDK's packages.json defaults alone:

UnoToolsLocator now passes the selected solution to ProjectAssetsParser.FindProjectAssetsFilesAsync. That method reads the solution with Microsoft.VisualStudio.SolutionPersistence, the same way CsprojUserGenerator already does. It returns the obj/project.assets.json of each listed project that has been restored, at any depth, in solution order. Assets that two projects in one folder share are read once. The old folder scan remains the fallback when there is no selected solution, it cannot be read, or none of its projects is restored yet. Only the selected solution's assets are read, so a library solution elsewhere in the workspace no longer feeds its versions in. That is the layout behind #25524.

Docs: src/Uno.UI.DevServer.Cli/addin-discovery.md and specs/001-fast-devserver-startup/spec-appendix-b-addin-discovery.md.

Validation

PR Checklist ✅

  • 🧪 Added unit tests (Given_ProjectAssetsParser); runtime check with disco --json above
  • 📚 Docs have been updated (addin-discovery.md, spec appendix B)
  • 🖼️ Validated PR Screenshots Compare Test Run results. (n/a: DevServer CLI only)
  • ❗ Contains NO breaking changes
  • 👀 Reviewed 2 other open pull requests

🤖 Generated with Claude Code


This is an automatic backport of pull request #25700 done by [Mergify](https://mergify.com).

vatsashah45 and others added 2 commits October 27, 2026 14:01
Add-in discovery read project.assets.json only from the workspace root and
its immediate subdirectories. An app under src/MyApp/ is two levels down,
so its restored versions were never read: add-ins resolved from the Uno
SDK's packages.json defaults, and an add-in the SDK does not list, such as
Uno.UI.App.Mcp on some SDKs, was left out of --addins entirely.

Discovery now reads the obj/project.assets.json of each project the
selected solution lists, at any depth. The folder scan remains the
fallback when there is no readable, restored solution.

Fixes #24311. Part of #25524.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
(cherry picked from commit 5f89f3c)
Resolve project paths against the solution folder with
Path.GetFullPath(path, base) and join fixed segments with Path.Join.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
(cherry picked from commit cf75c96)
@unodevops

Copy link
Copy Markdown
Contributor

🤖 Your WebAssembly Sample App stage site is ready! Visit it here:

@unodevops

Copy link
Copy Markdown
Contributor

@unodevops

Copy link
Copy Markdown
Contributor

⚠️⚠️ The build 241666 has failed on Uno.UI - CI.

@agneszitte
agneszitte merged commit 9df5a1a into servicing/6.8 Nov 3, 2026
48 of 57 checks passed
@agneszitte
agneszitte deleted the mergify/bp/servicing/6.8/pr-25700 branch November 3, 2026 07:35
@agneszitte

Copy link
Copy Markdown
Member

@Mergifyio backport release/stable/6.7

@mergify

mergify Bot commented Nov 3, 2026 •

Copy link
Copy Markdown
Contributor Author

backport release/stable/6.7

✅ Backports have been created

Details

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants