Repository navigation
fix(storage)!: Remove the stray Windows.Storage.ThumbnailMode - #25990
Merged
MartinZikmund merged 1 commit intoNov 4, 2026
Merged
MartinZikmund merged 1 commit into
MartinZikmund merged 1 commit into
Conversation
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 unoplatform#25479 Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
Contributor
|
🤖 Your WebAssembly Sample App stage site is ready! Visit it here: |
Xiaoy312
approved these changes
Nov 3, 2026
MartinZikmund
enabled auto-merge
November 3, 2026 19:34
Contributor
|
🤖 Your Docs stage site is ready! Visit it here: https://unodocsprstaging.z13.web.core.windows.net/pr-25990/docs/index.html |
MartinZikmund
approved these changes
Nov 4, 2026
Member
|
@Mergifyio backport release/stable/7.0 |
Contributor
✅ Backports have been createdDetails
|
1 of 5 tasks
1 of 5 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
GitHub Issue: closes #25479
PR Type:
🐞 Bugfix
What changed? 🚀
Uno declared a public
Windows.Storage.ThumbnailModeenum (MusicView,VideosView) that WinRT doesn't have. The WinRT type isWindows.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:(reproduced with the issue's project on
Uno.WinRT 7.0.0-dev.2554)src/Uno.WinRT/Storage/ThumbnailMode.cs.GetThumbnailAsynchelper inStorageFilebuilt on the old iOSMPMoviePlayerController, which sat in an#if falseblock and never compiled.PackageDiffIgnore.xml: the type removal is listed in the 6.6 and 6.7 sets.Windows.Storage.FileProperties.ThumbnailMode.Validation
Uno.WinRTGeneric, Reference and Wasm build with analyzers.using Windows.Storage; using Windows.Storage.FileProperties;+ThumbnailMode.PicturesView) compiles against the newly builtUno.WinRTreference assembly; it fails with CS0104 against the published package.PR Checklist ✅
Screenshots Compare Test Runresults.Breaking change: the public
Windows.Storage.ThumbnailModetype is removed. It isn't a WinRT type, so code using it didn't build on WinUI either; useWindows.Storage.FileProperties.ThumbnailMode.🤖 Generated with Claude Code