Skip to content

Unpackaged scenarios with WinAppSDK broken #1116

@j0shuams

Description

@j0shuams

Using a C#/WinRT component with WinUI 3 types from unpackaged apps has some issues. In the C++ case, a runtime error is thrown "No package identity". In the C# case, a WinAPPSDK error is thrown "No match for key in index"

To Reproduce

  1. Follow the steps here to make an unpackaged app
  2. Create a C#/WinRT component
  3. Add a project reference in the C++ app to the C# component

Expected behavior*
App runs normally

Version Info
Windows APP SDK - 1.1.0-20220215.0-CI-experimental
VS2022
net6.0-windows10.0.19041

Additional context
Here's a repo with a repro - https://github.com/j0shuams/CsWinRTAuthoringWinUI/tree/alpha/CppUnpackaged

Metadata

Metadata

Assignees

No one assigned

    Labels

    authoringRelated to authoring feature workbugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions