Closed trojanfoe closed 5 years ago
Note that this issue is really against the DirectXTK VS templates, not the DirectXTK library itself, so sorry about that.
Here is the solution:
final
from ViewProvider
and ViewProviderFactory
.CoreApplication
:IFrameworkViewSource viewProviderFactory = winrt::make<ViewProviderFactory>();
CoreApplication::Run(viewProviderFactory);
Ah, this should be tracked here then.
Note that the Microsoft.Windows.CppWinRT doesn't include the C++/WinRT version of the headers... they are part of the Windows 10 SDK (17763). It just provides the debugging support and cppwinrt
complier if you want to convert your own winmd
files. I'm guessing the problem here is then with the new 'generated base.h'...
Thanks again for the report. Looks like that change supports existing C++/WinRT base.h as well as that newly generated one, which is good news.
Fixed in this commit.
After adding Microsoft.Windows.CppWinRT package 2.0.190425.5 to the UWP template project I get the following compile errors:
Prior to adding the package (and I assume using winrt headers in the Win 10 SDK) I did not get this error, however VS Intellisense didn't like the call to
Run()
:CoreApplication::Run(viewProviderFactory);
One of the errors can be solved by removing
final
fromViewProvider
however I'm too much of an UWP/WinRT n00b to figure out the other error.Visual Studio version 15.9.11 Windows 10 SDK 10.0.17763.0 Project target platform 10.0.17763.0 Project min platform 10.0.15063.0