Skip to content

Is it possible to detect Xaml root element type and idl type mismatch? #10761

@HO-COOH

Description

@HO-COOH

Describe the bug

I am creating a ResourceDictionary with code-behind to be able to use x:Bind, so I created it with the UserControl file template, change the xaml root element to ResourceDictionary, then I build the project, and it builds.

Later I realized, I forgot to also change the idl type to ResourceDictionary.

My question is is there any possibility to detect such type mismatch?

Why is this important?

Saves time. Because editing one single idl file will require the whole project rebuild, which is exremely time-consuming for C++ project.

Steps to reproduce the bug

As described above

Actual behavior

No response

Expected behavior

No response

Screenshots

No response

NuGet package version

WinUI 3 - Windows App SDK 1.7.3: 1.7.250606001

Windows version

Windows 11 (24H2): Build 26100

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    needs-triageIssue needs to be triaged by the area owners

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions