Is C++ Windows Runtime Component (WinUI3) usable in WinUI3 Desktop Packaged project? #763
-
I started using Project Reunion 0.5.5, samples compiled successfully. Here is my setup
Severity Code Description Project File Line Suppression State What is going on here? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
@DefaultRyan can you try out this repro? Notice that this involves creating two projects (a separate Runtime Component project). |
Beta Was this translation helpful? Give feedback.
-
The Xaml Compiler knows enough about the project reference to add a reference to the runtime component's XamlMetaDataProvider: if (_otherProviders.empty())
{
_otherProviders.push_back(::winrt::Controls1::XamlMetaDataProvider());
_otherProviders.push_back(::winrt::Microsoft::UI::Xaml::XamlTypeInfo::XamlControlsXamlMetaDataProvider());
} Unfortunately, it didn't add the needed #include statement to that file. I've filed an issue with WinUI to track this: XamlTypeInfo.g.cpp adds providers for project references, but doesn't #include needed headers #include <winrt/Controls1.h> |
Beta Was this translation helpful? Give feedback.
The Xaml Compiler knows enough about the project reference to add a reference to the runtime component's XamlMetaDataProvider:
Unfortunately, it didn't add the needed #include statement to that file. I've filed an issue with WinUI to track this:
XamlTypeInfo.g.cpp adds providers for project references, but doesn't #include needed headers
In the meantime, you c…