Skip to content

fix(sdk): give the optional implicit package message its own code UNOB0037 - #25696

Open
waland1510 wants to merge 1 commit into
unoplatform:masterfrom
waland1510:valeriy/unob0028-duplicate-code
Open

waland1510 wants to merge 1 commit into
unoplatform:masterfrom
waland1510:valeriy/unob0028-duplicate-code

Conversation

@waland1510

@waland1510 waland1510 commented Oct 25, 2026 •

Copy link
Copy Markdown

GitHub Issue: closes #25334

PR Type:

🐞 Bugfix

What changed? 🚀

UNOB0028 was emitted by two unrelated diagnostics: the UnoSplashScreenColor warning and the optional-implicit-package message in ImplicitPackagesResolver. The error-codes page had to document both causes under one heading.

The skipped-optional-package message now reports UNOB0037, the next free code after UNOB0036 on master (src/Uno.Sdk, doc/articles and open PRs checked right before pushing). The targets comment follows.

Docs:

  • uno-build-error-codes.md: UNOB0028 is back to a single ### UNOB0028: The UnoSplashScreenColor property is no longer supported section. The heading text and the unob0028 anchor are kept, since splash-screen.md, migrating-to-uno-7/project-setup.md and aka.platform.uno/UNOB0028 link to them. UNOB0037 gets its own section after UNOB0036, so the page stays in numeric order.
  • using-the-uno-sdk.md links the new code with [UNOB0037](xref:Build.Solution.error-codes#unob0037-an-optional-implicit-package-was-skipped), like the other UNOB codes.

Suppression: the skipped-package diagnostic is a Log.LogMessage at normal importance, not a warning, so NoWarn / WarningsAsErrors never applied to it and renumbering changes no suppression. The only visible change is that anyone grepping build logs for UNOB0028 to find the skipped-package message (shipped in 7.0.29+) now needs UNOB0037. The splash-screen warning keeps UNOB0028, so existing NoWarn entries for it still work.

No unit test: the change is a message code constant. Uno.Sdk builds clean.

PR Checklist ✅

  • 🧪 Tests (not applicable: diagnostic code string)
  • 📚 Docs updated
  • 🖼️ Validated PR Screenshots Compare Test Run results.
  • ❗ Contains NO breaking changes (the message code changes from UNOB0028 to UNOB0037; it was never suppressible, see above)
  • 👀 Reviewed 2 other open pull requests

Addresses #25334

🤖 Generated with Claude Code

@CLAassistant

CLAassistant commented Oct 25, 2026 •

Copy link
Copy Markdown

CLA assistant check
All committers have signed the CLA.

@unodevops

Copy link
Copy Markdown
Contributor

{
Log.LogMessage(subcategory: null,
code: "UNOB0028",
code: "UNOB0030",

@agneszitte agneszitte Oct 31, 2026 •

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@Xiaoy312 UNOB0030 is already taken on master: #25614 (merged 10-26) uses it for "The SkiaRenderer Uno Feature is ignored in a library" (Uno.Features.targets, uno-build-error-codes.md, https://aka.platform.uno/UNOB0030). Merged as is, two diagnostics would share UNOB0030 again, the same problem as #25334 that this PR fixes.

The last code on master is UNOB0032, and #25832 (open) uses UNOB0033, so UNOB0034 looks free after a rebase. The code also appears in this PR's docs and targets comment. Could you help get it renumbered before this merges in addition to a review please?

@mergify

mergify Bot commented Nov 10, 2026

Copy link
Copy Markdown
Contributor

Tick the box to add this pull request to the merge queue (same as @mergifyio queue). If it does not match the queue conditions yet, it enters the queue once it does.

  • Queue this pull request

@MartinZikmund MartinZikmund left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@waland1510 thanks for picking this up, splitting the two meanings of UNOB0028 is the right call. A few things before it can go in:

  1. The code needs renumbering again. Agnes already flagged that UNOB0030 is taken (the SkiaRenderer-in-a-library warning in Uno.Features.targets). Since then UNOB0034, UNOB0035 and UNOB0036 have landed on master too (Lottie on WinAppSDK, Prism feature, MauiEmbedding), so the next free code is UNOB0037. I couldn't find an open PR claiming it, but please grep src/Uno.Sdk and doc/articles once more right before pushing.
  2. Rebase needed. The branch is far behind and conflicts. master has meanwhile documented the overlap as a combined section in uno-build-error-codes.md: an explicit <a name="unob0028"></a> anchor, a ### UNOB0028: ... or an optional implicit package was skipped heading, a "two unrelated causes" intro and two #### subsections. With this fix, that should collapse back to a plain ### UNOB0028: The UnoSplashScreenColor property is no longer supported section (the generated anchor unob0028-the-unosplashscreencolor-property-is-no-longer-supported is what splash-screen.md and migrating-to-uno-7/project-setup.md link to, so keep that heading text exactly). Then add ### UNOB0037: An optional implicit package was skipped after UNOB0036 so the page stays in numeric order. Keeping the unob0028 anchor is fine, since aka.platform.uno/UNOB0028 may still point at it.
  3. Link the new code from using-the-uno-sdk.md. Instead of a bare `UNOB0037`, use [UNOB0037](xref:Build.Solution.error-codes#unob0037-an-optional-implicit-package-was-skipped), like the other docs do for UNOB codes, so readers can get to the explanation.
  4. PR description: the suppression note. The skipped-package diagnostic is a Log.LogMessage (normal importance), not a warning, so NoWarn/WarningsAsErrors never applied to it. Renumbering can't change anyone's suppression or turn it into an error. The only thing that changes is that someone grepping logs for UNOB0028 to find the skipped-package message now needs the new code. That's worth one line in the description, because the message shipped in 7.0.x (7.0.29+). The splash-screen warning keeps UNOB0028, so existing NoWarn entries for it still work, as you said.

The code change itself (one constant, plus the targets comment) is fine. Once it's renumbered and rebased, this is good to go.

Comment thread doc/articles/uno-build-error-codes.md Outdated
The diagnostic is raised on the `xmlns` declaration. The same names remain valid as ordinary namespace aliases, so a declaration using the `using:` form — for instance `xmlns:skia="using:SkiaSharp.Views.Windows"` or `xmlns:legacy="using:Uno.UI.Controls.Legacy"` — is not reported. `legacy` is only reported when it is listed in `mc:Ignorable`, which is where it used to act as a condition. See [Removed XAML prefixes](xref:Uno.Development.MigratingToUno7#removed-xaml-prefixes).

### UNOB0028: An optional implicit package was skipped
### UNOB0030: An optional implicit package was skipped

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

After rebasing, this section should move to after UNOB0036 with the new code (UNOB0037). Also remove the combined UNOB0028 intro and the #### subsections that master added around line 316, leaving a single ### UNOB0028: The UnoSplashScreenColor property is no longer supported heading. Keep that heading text exactly, because splash-screen.md and migrating-to-uno-7/project-setup.md link to its generated anchor.

- It is absent from optimized (Release) builds. Code that uses its types must only compile in non-optimized builds, for example under `#if DEBUG`, or the Release build fails.
- It is referenced with `PrivateAssets="all"`, so it does not flow to projects that reference yours, nor into the package of a library packed in Debug. A test project that doesn't use the `MVUX` feature references it directly, at the same version as the app's Uno.Extensions packages.
- It follows `UnoExtensionsVersion`, and is skipped (`UNOB0028`) when that version is older than the 7.4 builds that first ship it, or is a floating version or a range.
- It follows `UnoExtensionsVersion`, and is skipped (`UNOB0030`) when that version is older than the 7.4 builds that first ship it, or is a floating version or a range.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could this link to the error-codes entry, e.g. [UNOB0037](xref:Build.Solution.error-codes#unob0037-an-optional-implicit-package-was-skipped)? Other pages do that for UNOB codes.

…B0037

UNOB0028 was used by both the UnoSplashScreenColor warning and the
optional-implicit-package message, so the error-codes page had to
document two unrelated causes under one heading. The skipped-package
message now reports UNOB0037, the next free code, and the docs follow:
UNOB0028 is back to a single splash-screen section and UNOB0037 gets
its own entry after UNOB0036.

Addresses unoplatform#25334

Co-Authored-By: Claude Fable 5.1 <[email protected]>
@waland1510
waland1510 force-pushed the valeriy/unob0028-duplicate-code branch from e27ce6c to 08ef8df Compare November 19, 2026 17:58
@waland1510 waland1510 changed the title fix(sdk): give the optional implicit package message its own code UNOB0030 fix(sdk): give the optional implicit package message its own code UNOB0037 Nov 19, 2026
@waland1510

Copy link
Copy Markdown
Author

Thanks @MartinZikmund and @agneszitte. Rebased on master and renumbered to UNOB0037 (checked src/Uno.Sdk, doc/articles and open PRs right before pushing; nothing else claims it).

  • uno-build-error-codes.md: the combined UNOB0028 section is collapsed back to the single splash-screen heading (text and unob0028 anchor unchanged), and UNOB0037 has its own section after UNOB0036.
  • using-the-uno-sdk.md now links the code with the xref.
  • PR description has the suppression note: the message was a normal-importance LogMessage, so no NoWarn entry is affected; only log greps for the skipped-package message need the new code.

@unodevops

Copy link
Copy Markdown
Contributor

@MartinZikmund MartinZikmund left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@waland1510 thanks, all sorted: renumbered to UNOB0037 (nothing else claims it), UNOB0028 is back to the single splash-screen section with its anchor intact, the new section sits after UNOB0036, and using-the-uno-sdk.md links it via xref. The suppression note in the description is spot on too.

@MartinZikmund

Copy link
Copy Markdown
Member

/azp run

@azure-pipelines

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

@unodevops

Copy link
Copy Markdown
Contributor

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

@unodevops

Copy link
Copy Markdown
Contributor

@nventive-devops

Copy link
Copy Markdown
Contributor

The build 247745 found UI Test snapshots differences: skia-linux-screenshots: 238, skia-windows-screenshots: 252

Details
  • skia-linux-screenshots: 238 changed over 2500

    🚨🚨 Comparison Details (first 20) 🚨🚨
    • Accessibility_Showcase.png-dark
    • BenchmarkDotNet.png-dark
    • BenchmarkDotNet.png
    • Border_CornerRadius_Binding.png-dark
    • Border_CornerRadius_Binding.png
    • BreadcrumbBarPage.png-dark
    • BreadcrumbBarPage.png
    • Accessibility_Showcase.png
    • AnimatedVisualsTestbedPage.png
    • BasicAcrylicBrushTest.png-dark
    • BasicAcrylicBrushTest.png
    • ComboBox_MaxDropdownHeight.png-dark
    • ComboBox_MaxDropdownHeight.png
    • AnimatedVisualsTestbedPage.png-dark
    • AppWindowTitleBar Properties.png
    • AutomationProperties_StructureAndProps.png
    • BitmapIcon_Foreground.png-dark
    • BitmapIcon_Foreground.png
    • ButtonClippingTestsControl.png-dark
    • ButtonClippingTestsControl.png
  • skia-windows-screenshots: 252 changed over 2500

    🚨🚨 Comparison Details (first 20) 🚨🚨
    • Accessibility_Showcase.png-dark
    • AnimatedBackVisualSourceSamplePage.png-dark
    • AnimatedVisualsTestbedPage.png
    • AutomationProperties_AutomationId.png
    • AnimatedBackVisualSourceSamplePage.png
    • AutomationProperties_AutomationId.png-dark
    • Basics.png-dark
    • Basics.png
    • BenchmarkDotNet.png-dark
    • BenchmarkDotNet.png
    • ButtonClippingTestsControl.png-dark
    • ButtonClippingTestsControl.png
    • Buttons.png-dark
    • AutomationProperties_StructureAndProps.png-dark
    • AutomationProperties_StructureAndProps.png
    • BasicAcrylicBrushTest.png-dark
    • Border_CornerRadius_BorderThickness.png-dark
    • Border_CornerRadius_BorderThickness.png
    • BreadcrumbBarPage.png-dark
    • BreadcrumbBarPage.png

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.

Two different Uno.Sdk diagnostics share the build code UNOB0028

6 participants