Skip to content

Unable to resolve suitable regular or attached property Hosts on type MainWindow #66

@kingnathimlotshwa

Description

@kingnathimlotshwa

Describe the bug
Getting " Unable to resolve suitable regular or attached property Hosts on type on MainWindow.axaml"

To Reproduce
Steps to reproduce the behavior:

  1. Create a new project
  2. Install ShadUI package
  3. Update ViewLocator, ServiceProvider and Match the one on the demo
  4. Only use MainWindow.axaml and it's vm, which updated to work with ShadUI
  5. No build the solution: "MainWindow.axaml(1,2): Error AVLN2000 Avalonia: Unable to resolve suitable regular or attached property Hosts"

Expected behavior
Should build correctly with no errors

Screenshots
Solution Structure
Image

MainWindow.axaml
Image

Application
Image

Code Behind App

Image

Desktop (please complete the following information):

  • OS: Windows 11
  • Version [e.g. 22]
  • ShaUI 0.1.16
  • Avalonia 11.3.11

Additional context
Add any other context about the problem here.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions