When I upgraded this solution to the latest C++/winrt, I get an internal compiler problem. Initially all was fine moving over to VS2019. After using the Nuget package manager to upgrage Microsoft.Windows.CppWinRT to version 2.0.200203.5, the Dynamic lib build produces:
midl : error MIDL9008: internal compiler problem
Any ideas?