Windows APIs in .NET 5 - Microsoft.Windows.SDK.NET.dll is 25MB?

Viewed 545

I'm following the Calling Windows APIs in .NET5 guide to call the Notification APIs in my WPF app. However now it's put a 25MB Microsoft.Windows.SDK.NET.dll in my output directory. This would increase my app's download size by 50% just for a small feature. Is there a way to shave this down to just the APIs I need?

1 Answers

Perhaps you can design an update package or a set of update packages to draw up an optimized patch strategy to defer this fat assembly download by arranging it in a separate dependency package. What is more the user would not even download it in the event your new feature had not been selected during installation. MSIX shall be eligible to set up this kind of package ecosystem.

Related