Hey this is nifty: #cppwinrt is finally adding support for #cpp modules from c++20.

https://github.com/microsoft/cppwinrt/pull/1575

This is a huge deal for the PCH's that are generated by winrt - the `Windows` namespaces (especially #XAML) can pretty quickly grow to 1GB on disk _per project_ in your solution. It's crazy.

With modules, you can build those windows headers once, and re-use them across the whole sln.

It's something I experimented with a few years back, and the compiler is finally updated for it!

C++20 module support v2 by DefaultRyan · Pull Request #1575 · microsoft/cppwinrt

C++20 Module Support v2: Per-Namespace Modules (import winrt.Windows.Foundation;) Overview This PR adds per-namespace C++20 module support to C++/WinRT, building on the approach pioneered by @Yexua...

GitHub

Tired Take:
#WinMD, #WinRT, #CsWinRT and #CppWinRT are a mistake.

#DotNet #CSharp

I put together some script/repo templates to make it super easy to create a repo on #github that produces a #WinRT component implemented in C++, and creates a #NuGet package for it so that apps can easily consume it. Think of it as a generator for a "repo for a library".

https://github.com/asklar/CppWinRT.RepoSetup

#windows #windowsdev #cppwinrt

GitHub - asklar/CppWinRT.RepoSetup: Repo setup script for C++/WinRT components

Repo setup script for C++/WinRT components. Contribute to asklar/CppWinRT.RepoSetup development by creating an account on GitHub.

GitHub