Windows UI Library in C++/WinRT blank app.

Ryan Gallagher 21 Reputation points
2020-08-28T18:13:55.68+00:00

I tried to add Windows UI Library and it broke all of my winrt includes in pch.h.
I added the lines of code to the app.xaml and to my mainpage.xaml and it seems to just break everything.

Simply installing the UI Library causes all of the winrt includes in pch to break.

Okay tried to create a new black app and try again and now none of my winrt header files are being found...
Open old app that I am working on and no errors with include winrt...

What the heck did I do?

EDIT: Did some digging and found that visual studio is not placing any of the WinRT files in the project. Could I have accidentally deleted something integral to the extension?

Universal Windows Platform (UWP)
{count} votes