Projects targeting Windows (for example via a TargetFramework of net5.0-windows10.0.18362) should automatically have access to WinRT APIs available in the targeted version of Windows.
This is basically the same as #11234, but for Windows. The Windows SDK team should create targeting packs and runtime packs for the WinRT APIs, and the SDK should reference them as appropriate.
For Windows, the KnownFrameworkReference items and the implicit FrameworkReference would go in the WindowsDesktop targets files.
Related work:
Projects targeting Windows (for example via a
TargetFrameworkofnet5.0-windows10.0.18362) should automatically have access to WinRT APIs available in the targeted version of Windows.This is basically the same as #11234, but for Windows. The Windows SDK team should create targeting packs and runtime packs for the WinRT APIs, and the SDK should reference them as appropriate.
For Windows, the
KnownFrameworkReferenceitems and the implicitFrameworkReferencewould go in the WindowsDesktop targets files.Related work:
TargetPlatformIdentifierandTargetPlatformVersionproperties, which will usually be parsed out from theTargetFramework)TargetPlatformVersionfor Windows to 7.0: Set default TargetPlatformVersion for Windows #11233TargetPlatformIdentifieris Windows andTargetPlatformVersionis not recognized: Generate error if TargetPlatformVersion is not a valid version when targeting Windows #12456