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
- Create a WinUI 3 project and build it.
- 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)