Skip to content

CSWinRT 3 cannot find type WinRT.IWinRTObject in module WinRT.Runtime.dll #2382

@ghost1372

Description

@ghost1372

Description

Hi i am trying to use CsWinRT v3 in my blank winui 3 app.
I set

<TargetFramework>net10.0-windows10.0.26100.1</TargetFramework>
<WindowsSdkPackageVersion>10.0.26100.85-preview</WindowsSdkPackageVersion>

But i get error
cannot find type WinRT.IWinRTObject in module WinRT.Runtime.dll

Steps To Reproduce

1.create blank winui 3 (v1.8 or 2.0.0 preview2)
2.use cswinrt v3

Expected Behavior

Compile and run without issue

Version Info

v3.0.0-preview.260319.2

Additional Context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions