Windows 10 WinRT API Packs released: add WPF or Winforms application for Windows functionality
Following the release of .NET Core 3.0 and a number of updates to developer tools last week, Microsoft today announced the Windows 10 WinRT API Packs. The new API package adds many features that were previously only available for WinRT (including UWP) applications for WinForms and WPF. These include Geolocation, Windows AI, Machine Learning, Bluetooth and much more.
Currently, this new API Pack is available as a NuGet package at nuget.org and is supported for Windows 10 Version 1803 and higher. To add it to your project, you first need to set it up to support the Package Reference. Then, select the package for the Windows 10 version you want to target, and you will be able to use the WinRT feature in WPF and WinForms applications.
To see an example of a WPF or WinForms application that uses WinRT functionality, you can check out the Microsoft.Toolkit on GitHub.