Skip to content

Bug: Name collision happens when the root namespace is the same as a class name in GeneratedBindableCustomProperty SG #2026

Description

@0x5bfa

Description

When the project's root namespace is DataGrid and there's a class DataGrid in the root namespace, name collision issue happens in [WinRT.GeneratedBindableCustomProperty()].

Adding global:: should fix this issue.

Steps To Reproduce

  1. Create Project Name1
  2. Create a class Name1 in the root
  3. Add a item model class and add an attribute GeneratedBindableCustomProperty to it
  4. See the SG'd source and the erorrs

Expected Behavior

No errors

Version Info

  • Microsoft.Windows.SDK.BuildTools
    • 10.0.26100.4654
  • Microsoft.WindowsAppSDK
    • 1.7.250606001

Additional Context

No response

No activity

Activity on this issue will appear here.

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions