Skip to content

Bug: winrt.ixx is overwriten and contains only Windows Runtime APIs #1336

@sotanakamura

Description

@sotanakamura

Version

2.0.230706.1

Summary

In a WinUI 3 project, cppwinrt generates the projection for Windows Runtime APIs and Windows App SDK APIs. However, winrt.ixx contains only Windows Runtime APIs. This is the problem of Visual Studio build process. cppwinrt can generate winrt.ixx properly in command line.

Reproducible example

  1. Create a WinUI 3 project and build it.
  2. Open winrt.ixx and you can see it dosen't contain "Microsoft.*.h".

Expected behavior

winrt.ixx should contain "Microsoft.*.h".

Actual behavior

winrt.ixx contains only "Windows.*.h".

Additional comments

Additional information by @DarranRowe microsoft/WindowsAppSDK#3767 (comment)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions