Skip to content

fix(storage): remove stray ThumbnailMode enum to resolve CS0104 colli… - #25521

Open
muhammad-adeeb9 wants to merge 1 commit into
unoplatform:masterfrom
muhammad-adeeb9:fix/remove-stray-thumbnailmode
Open

muhammad-adeeb9 wants to merge 1 commit into
unoplatform:masterfrom
muhammad-adeeb9:fix/remove-stray-thumbnailmode

Conversation

@muhammad-adeeb9

Copy link
Copy Markdown

GitHub Issue: closes #25479

PR Type: 🐞 Bugfix

What changed? 🚀

Removed the stray Windows.Storage.ThumbnailMode enum from src/Uno.WinRT/Storage/ThumbnailMode.cs to resolve the CS0104 ambiguous reference conflict with Windows.Storage.FileProperties.ThumbnailMode, aligning Uno's behavior with standard WinUI.

PR Checklist ✅

Copilot AI balanced review requested due to automatic review settings October 15, 2026 16:45

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

An organization owner can choose the repository organization as the billing source for reviews requested by members with a paid Copilot license. Learn about Copilot code review billing. Review the Copilot code review billing settings.

@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.

@muhammad-adeeb9 thanks a lot for picking this up, the diagnosis is spot on: Windows.Storage.ThumbnailMode isn't a WinRT type and only clashes with Windows.Storage.FileProperties.ThumbnailMode.

The same fix already landed on master in #25990 (merged Nov 4), which also closed #25479. Besides deleting the file, it cleaned up the leftover StorageFile usage, added the PackageDiffIgnore entry and a note in the 7.0 migration guide. Removing a public type counts as a breaking change, so the API diff check needs that entry. The 7.0 backport is in #26038.

So this PR is superseded and I'd suggest closing it. Sorry the timing didn't work out, and thanks again for the contribution. We'd be happy to see more from you!

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Windows.Storage.ThumbnailMode is not a WinRT type and makes ThumbnailMode ambiguous with Windows.Storage.FileProperties

3 participants