Skip to content

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

Merged
vatsashah45 merged 2 commits into
masterfrom
dev/vs/devserver-addins-from-solution
Oct 27, 2026
Merged

vatsashah45 merged 2 commits into
masterfrom
dev/vs/devserver-addins-from-solution

Conversation

@vatsashah45

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

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]>
@unodevops

Copy link
Copy Markdown
Contributor

@unodevops

Copy link
Copy Markdown
Contributor

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

@nventive-devops

Copy link
Copy Markdown
Contributor

The build 241279 found UI Test snapshots differences: skia-linux-screenshots: 118, skia-windows-screenshots: 2458

Details
  • skia-linux-screenshots: 118 changed over 2458

    🚨🚨 Comparison Details (first 20) 🚨🚨
    • CompositionEffectBrush.png-dark
    • CompositionEffectBrush.png
    • CompositionNineGridBrush_Source_Changes.png-dark
    • CompositionNineGridBrush_Source_Changes.png
    • CalendarView_Theming.png-dark
    • CalendarView_Theming.png
    • ButtonClippingTestsControl.png-dark
    • ButtonClippingTestsControl.png
    • Buttons.png-dark
    • Buttons.png
    • ClipboardTests.png-dark
    • DropDownButtonPage.png-dark
    • Examples.png
    • DynamicFont.png-dark
    • DynamicFont.png
    • Gamepad_CurrentReading.png-dark
    • Gamepad_Enumeration.png-dark
    • ImageBrushInList.png-dark
    • ImageBrushInList.png
    • DoubleImageBrushInList.png-dark
  • skia-windows-screenshots: 2458 changed over 2490

    🚨🚨 Comparison Details (first 20) 🚨🚨
    • Accessibility_ScreenReader.png
    • AnimatedBackVisualSourceSamplePage.png
    • AppBarButtonWithIconTest.png-dark
    • AppBarButtonTest.png-dark
    • AppBar_KeyBoard.png-dark
    • AppBarToggleButtonTest.png
    • ApplicationViewSpanningRectsPage.png-dark
    • Application_DispatcherShutdownMode.png-dark
    • AppWindowFeatures.png-dark
    • AppWindowPositionAndSize.png-dark
    • AppWindowPresenters.png
    • AppXamlDefinedResources.png
    • ArcSegment.png
    • Attributed_text_Simple.png-dark
    • AuthenticationBroker_Cancel.png-dark
    • AuthenticationBroker_Demo.png
    • AutoBorderStretchwithrightmargin.png-dark
    • AutomationProperties_Name.png-dark
    • AutoBorderStretchwithrightmargin.png
    • AutomationProperties_Name.png

@unodevops

Copy link
Copy Markdown
Contributor

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

@vatsashah45

Copy link
Copy Markdown
Contributor Author

C:/Program Files/Git/azp run

@vatsashah45

Copy link
Copy Markdown
Contributor Author

/azp run

@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines will not run the associated pipelines, because the pull request was updated after the run command was issued. Review the pull request again and issue a new run command.

@vatsashah45

Copy link
Copy Markdown
Contributor Author

/azp run

@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines successfully started running 2 pipeline(s).

@unodevops

Copy link
Copy Markdown
Contributor

@unodevops

Copy link
Copy Markdown
Contributor

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

@nventive-devops

Copy link
Copy Markdown
Contributor

The build 241408 found UI Test snapshots differences: skia-linux-screenshots: 118, skia-windows-screenshots: 2458

Details
  • skia-linux-screenshots: 118 changed over 2458

    🚨🚨 Comparison Details (first 20) 🚨🚨
    • CalendarView_Theming.png-dark
    • CalendarView_Theming.png
    • ButtonClippingTestsControl.png-dark
    • ButtonClippingTestsControl.png
    • Buttons.png-dark
    • Buttons.png
    • ClipboardTests.png-dark
    • DisplayInformation.png-dark
    • CompositionEffectBrush.png-dark
    • CompositionEffectBrush.png
    • CompositionNineGridBrush_Source_Changes.png-dark
    • CompositionNineGridBrush_Source_Changes.png
    • ElementLevelTheme.png-dark
    • ElementLevelTheme.png
    • ImageBrushAlignmentXY.png-dark
    • ImageBrushAlignmentXY.png
    • DropDownButtonPage.png-dark
    • Examples.png
    • DynamicFont.png-dark
    • DynamicFont.png
  • skia-windows-screenshots: 2458 changed over 2490

    🚨🚨 Comparison Details (first 20) 🚨🚨
    • AnimatedBackVisualSourceSamplePage.png-dark
    • AndroidWindowInsets.png
    • AppBarToggleButtonTest.png
    • AnimatedIconPage.png-dark
    • Application_DispatcherShutdownMode.png-dark
    • AnimatedIconPage.png
    • AppWindowTitleBar Properties.png-dark
    • AnimatedVisualsTestbedPage.png
    • ArcSegment.png-dark
    • AppBarToggleButtonTest.png-dark
    • AuthenticationBroker_Cancel.png-dark
    • ApplicationViewSpanningRectsPage.png-dark
    • AutoBorderStretchwithtopmargin.png-dark
    • AppWindowPositionAndSize.png-dark
    • AutomationProperties_Relations.png-dark
    • Attributed_text_FontSize_Changing.png-dark
    • AutoSizedTopLeft.png-dark
    • AuthenticationBroker_Cancel.png
    • AutoSizedTopLeft.png
    • AuthenticationBroker_Demo.png-dark

@kazo0

kazo0 commented Oct 26, 2026

Copy link
Copy Markdown
Contributor

@Mergifyio backport servicing/6.8

@mergify

mergify Bot commented Oct 26, 2026 •

Copy link
Copy Markdown
Contributor

backport servicing/6.8

✅ Backports have been created

Details

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]>
@unodevops

Copy link
Copy Markdown
Contributor

@unodevops

Copy link
Copy Markdown
Contributor

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

@nventive-devops

Copy link
Copy Markdown
Contributor

The build 241589 found UI Test snapshots differences: skia-linux-screenshots: 118, skia-windows-screenshots: 2458

Details
  • skia-linux-screenshots: 118 changed over 2458

    🚨🚨 Comparison Details (first 20) 🚨🚨
    • ButtonClippingTestsControl.png-dark
    • ButtonClippingTestsControl.png
    • Buttons.png-dark
    • Buttons.png
    • CalendarView_Theming.png-dark
    • CalendarView_Theming.png
    • ClipboardTests.png-dark
    • CompositionEffectBrush.png-dark
    • CompositionEffectBrush.png
    • CompositionNineGridBrush_Source_Changes.png-dark
    • CompositionNineGridBrush_Source_Changes.png
    • ElementLevelTheme.png-dark
    • ElementLevelTheme.png
    • DisplayInformation.png-dark
    • Examples.png
    • DynamicFont.png-dark
    • DynamicFont.png
    • ImageBrushAlignmentXY.png-dark
    • ImageBrushAlignmentXY.png
    • DropDownButtonPage.png-dark
  • skia-windows-screenshots: 2458 changed over 2492

    🚨🚨 Comparison Details (first 20) 🚨🚨
    • AnimatedBackVisualSourceSamplePage.png
    • AppBarButtonWithIconTest.png-dark
    • ApplicationViewMode.png-dark
    • AppWindowClosing.png-dark
    • AppWindowPresenters.png-dark
    • AppXamlDefinedResources.png
    • Attributed_text_Simple.png
    • AutoBorderStretchwithbottommargin.png-dark
    • AutomationProperties_Landmark.png-dark
    • AutomationProperties_Landmark.png
    • AutoSuggestBox_Reason.png-dark
    • AutoSuggestBox_Reason.png
    • BasicAutoSuggestBox.png-dark
    • BasicAutoSuggestBox.png
    • BeginTime_MultipleAnimations.png-dark
    • BeginTime_MultipleAnimations.png
    • BitmapIcon_Generic.png-dark
    • BitmapIcon_Generic.png
    • BorderCenteredwithmargins.png-dark
    • BorderCenteredwithmargins.png

@mergify

mergify Bot commented Oct 27, 2026 •

Copy link
Copy Markdown
Contributor

This pull request does not currently match the merge queue conditions, so it cannot be queued from here. The box comes back if it matches again.

@vatsashah45
vatsashah45 merged commit 539d7e4 into master Oct 27, 2026
59 checks passed
@vatsashah45
vatsashah45 deleted the dev/vs/devserver-addins-from-solution branch October 27, 2026 14:01
@agneszitte

Copy link
Copy Markdown
Member

@Mergifyio backport release/stable/6.7

@mergify

mergify Bot commented Nov 3, 2026 •

Copy link
Copy Markdown
Contributor

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.

DevServer add-in discovery misses project.assets.json when projects sit more than one level below the workspace root

5 participants