Skip to content

Please change the definitions in winrt/Microsoft.UI.Interop.h from internal linkage to inline #6563

Open

Description

I am one of the authors of the C++/WinRT 3.0 C++ module. The current NuGet package Microsoft.WindowsAppSDK.InteractiveExperiences.2.0.13 provides a winrt/Microsoft.UI.Interop.h that uses internal linkage rather than inline. This causes every translation unit that consumes it to redundantly emit its own definitions, increasing binary size and And prevents modules from exporting these functions. Furthermore, it does not state that an open-source license is used, I am legally prohibited from studying its implementation. These two issues together prevent users from wrapping it as a C++ module. Switching from internal linkage to inline would not a breaking change for WAS.

For reference, UCRT once declared functions with internal linkage, which prevented the STL from being modularized microsoft/STL#5805. The bug report for this can be found at https://developercommunity.visualstudio.com/t/Visual-Studio-cant-find-time-function/1126857.

Activity

  1. changed the title [-]Please change the definitions in Microsoft.UI.Interop.h from internal linkage to inline[/-] [+]Please change the definitions in winrt/Microsoft.UI.Interop.h from internal linkage to inline[/+] on Jun 11, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area-ProjectionsRequest for support of a runtime or languageneeds-area-owner-attentionThe issue has been routed to the owning team for review.

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions