Why does the nuget package include two winmd versions? #4079
-
The Windows App SDK nuget package includes If my app's minimum requirements are above I'm sure this has been answered somewhere or is documented but my searches couldn't find it. Thanks! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Currently, it is due to Microsoft.UI.Input.Interop.PenDeviceInterop. I can't really comment on how they split the .winmd files. However, Microsoft.UI.winmd contains the definition for the PenDeviceInterop runtime class and the IPenDeviceInteropStatics interface that provides the static member function definitions for the runtime class. If you look at the PenDeviceInterop documentation, you will notice that this contains a single static member function named FromPointerPoint. This static member function returns an instance of Windows.Devices.Input.PenDevice. This is where the issue is. The documentation for PenDevice states that it is available starting with Windows 10 build 18362. If you used the 18362 targeted version of the Windows App SDK with the 17763 version of the Windows metadata (either the Windows SDK or the SDK contract references) then it would be missing a reference. |
Beta Was this translation helpful? Give feedback.
Currently, it is due to Microsoft.UI.Input.Interop.PenDeviceInterop.
I can't really comment on how they split the .winmd files. However, Microsoft.UI.winmd contains the definition for the PenDeviceInterop runtime class and the IPenDeviceInteropStatics interface that provides the static member function definitions for the runtime class. If you look at the PenDeviceInterop documentation, you will notice that this contains a single static member function named FromPointerPoint. This static member function returns an instance of Windows.Devices.Input.PenDevice. This is where the issue is. The documentation for PenDevice states that it is available starting with Windows 10 build 18362. If you …