Bug with new SDK while using FindPackages(...)

  • Thread starter Thread starter Romain Caire
  • Start date Start date
R

Romain Caire

Guest
Hi,
In one of my projects I use this API:


PackageManager.FindPackages Method (Windows.Management.Deployment) - Windows UWP applications

But it seams it's not working anymore.

When I try to build with the latest SDK, build fail with error:
error C3779: 'winrt::impl::consume_Windows_Foundation_Collections_IIterable<winrt::Windows::Foundation::Collections::IIterablewinrt::Windows::ApplicationModel::Package,T>::First' : a function that returns 'decltype(auto)' cannot be used before it is defined
with
[
T=winrt::Windows::ApplicationModel::Package
]
see declaration: 'winrt::impl::consume_Windows_Foundation_Collections_IIterable<winrt::Windows::Foundation::Collections::IIterablewinrt::Windows::ApplicationModel::Package,T>::First'
with
[
T=winrt::Windows::ApplicationModel::Package
]


Here is an example of the bug.
supercairos/FindPacakgesBugWinSDK


Changing in general option of the projet Windows SDK from 10.0.18362.0 to 10.0.19041.0 show the bug.

Continue reading...
 
Back
Top