Skip to content

fix(storage)!: Remove the stray Windows.Storage.ThumbnailMode (backport #25990) - #26038

Open
mergify[bot] wants to merge 1 commit into
release/stable/7.0from
mergify/bp/release/stable/7.0/pr-25990
Open

mergify[bot] wants to merge 1 commit into
release/stable/7.0from
mergify/bp/release/stable/7.0/pr-25990

Conversation

@mergify

@mergify mergify Bot commented Nov 4, 2026

Copy link
Copy Markdown
Contributor

GitHub Issue: closes #25479

PR Type:

🐞 Bugfix

What changed? 🚀

Uno declared a public Windows.Storage.ThumbnailMode enum (MusicView, VideosView) that WinRT doesn't have. The WinRT type is Windows.Storage.FileProperties.ThumbnailMode, which Uno also ships. A file importing both namespaces, a common pair (the WinUI Gallery StoragePickers sample uses it), didn't compile:

error CS0104: 'ThumbnailMode' is an ambiguous reference between 'Windows.Storage.FileProperties.ThumbnailMode' and 'Windows.Storage.ThumbnailMode'

(reproduced with the issue's project on Uno.WinRT 7.0.0-dev.2554)

  • Removed src/Uno.WinRT/Storage/ThumbnailMode.cs.
  • Removed its only user, a GetThumbnailAsync helper in StorageFile built on the old iOS MPMoviePlayerController, which sat in an #if false block and never compiled.
  • PackageDiffIgnore.xml: the type removal is listed in the 6.6 and 6.7 sets.
  • 7.0 migration guide: a bullet under "WinRT projection alignment (WinUI parity)" pointing to Windows.Storage.FileProperties.ThumbnailMode.

Validation

  • Uno.WinRT Generic, Reference and Wasm build with analyzers.
  • The issue's snippet (using Windows.Storage; using Windows.Storage.FileProperties; + ThumbnailMode.PicturesView) compiles against the newly built Uno.WinRT reference assembly; it fails with CS0104 against the published package.

PR Checklist ✅

Breaking change: the public Windows.Storage.ThumbnailMode type is removed. It isn't a WinRT type, so code using it didn't build on WinUI either; use Windows.Storage.FileProperties.ThumbnailMode.

🤖 Generated with Claude Code


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

WinRT has no Windows.Storage.ThumbnailMode, so a file importing both
Windows.Storage and Windows.Storage.FileProperties got CS0104 on
ThumbnailMode. Its only user was an #if false iOS thumbnail helper in
StorageFile, removed with it.

Fixes #25479

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
(cherry picked from commit 8bb04f1)
@github-actions github-actions Bot added area/build Categorizes an issue or PR as relevant to build infrastructure kind/documentation labels Nov 4, 2026
@unodevops

Copy link
Copy Markdown
Contributor

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

@unodevops

Copy link
Copy Markdown
Contributor

@mergify

mergify Bot commented Nov 11, 2026

Copy link
Copy Markdown
Contributor Author

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

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

Labels

area/build Categorizes an issue or PR as relevant to build infrastructure kind/documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants