Skip to content

MarkupExtension search behavior is inconsistent with winui #19801

Open
@yaobiao131

Description

@yaobiao131

Current behavior

When I created two classes named ResourcesExtension and Resources in same namespace, ResourcesExtension implemented MarkupExtension and Resource is a static class. It can be parsed to ResourcesExtension normally in winui, but in uno, it will first search for the static class Resources.

Image
Should we swap the search order here, giving priority to searching for classes with the Extension extension to maintain winui behavior consistency?

Expected behavior

No response

How to reproduce it (as minimally and precisely as possible)

No response

Workaround

No response

Works on UWP/WinUI

Yes

Environment

No response

NuGet package version(s)

No response

Affected platforms

No response

IDE

No response

IDE version

No response

Relevant plugins

No response

Anything else we need to know?

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    area/code-generationCategorizes an issue or PR as relevant to code generationdifficulty/medium 🤔Categorizes an issue for which the difficulty level is reachable with a good understanding of WinUIkind/bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions