Skip to content

[Bug]: x:Bind members from a plain class-library ProjectReference are flagged and missing from completion #347

Open

Description

Describe the bug

An x:Bind path through a property whose type is defined in a plain (non-WinUI) ProjectReference class library reports valid members as WXAML0005 and offers no completion for them. BCL, WinAppSDK, same-project and WinUI-library types resolve fine.

To Reproduce

  1. Add a class library Core with public record Address(string City, string Zip); and reference it from the app.
  2. Add public Address Home { get; } to the view model.
  3. In a page, write <TextBlock Text="{x:Bind ViewModel.Home.City}"/>.
  4. See WXAML0005 'City' is not a member of 'Address'; completion after ViewModel.Home. is empty.

Expected behavior

No diagnostic (the project builds). Completion lists City and Zip.

Notes

May be affected by the project-reference changes in 9dcfccaa; verify on main. Bug bash ID: C-15.

Screenshots

No response

OS Version and details

Windows 11 x64 (10.0.26200), VS Code 1.143.1, .NET SDK 10.0.403. Found in the XAML IntelliSense bug bash on 0.3.1-prerelease.456 (PR #276, f90df977).

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

    bugintellisense

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions