microsoft / Win2D

Win2D is an easy-to-use Windows Runtime API for immediate mode 2D graphics rendering with GPU acceleration. It is available to C#, C++ and VB developers writing apps for the Windows Universal Platform (UWP). It utilizes the power of Direct2D, and integrates seamlessly with XAML and CoreWindow.
http://microsoft.github.io/Win2D
Other
1.82k stars 288 forks source link

Use the correct nuget package path for the native bits #859

Open mattleibow opened 3 years ago

mattleibow commented 3 years ago

NuGet supports automatically including native libraries if you place them in the:

runtimes\win10-<arch>\native\*.dll

Sort of done here in WASDK: https://github.com/microsoft/WindowsAppSDK/pull/1592

I see you have done that already, but you also still have the targets files in the net5 and netcoreapp folders. With those platforms, nuget will take care of all the things and automatically import the correct things. In fact, it also will support publishing your app for all the CPUs, and then pick the correct one from the local bin directory on any arch.

duncanmacmichael commented 3 years ago

Hi @mattleibow, we'll reach out to you about this internally, thanks! Appreciate this feedback. :)