Repository navigation
Should the samples/templates only import required packages? #1280
Sébastien Ros (sebastienros)
started this conversation in
General
Replies: 1 comment
|
Hello. We did work on this area recently. Still, you are correct that the new WinAppSDK templates point to main package... I'm pretty sure we can remove that dependency. I'll look into it! |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
I noticed that the samples and templates include
Microsoft.WindowsAppSDKwhen most of the time they only requireMicrosof.WindowsAppSDK.WinUIorMicrosof.WindowsAppSDK.Runtime. The meta package brings in AI/ML assemblies that are usually not necessary and can increase the build size, even for trimmed releases. And I believe that even for trimmed release it will increase the build times because the linked will have to add it to the problem.We discovered it while checking the size of our nativeaot-ed binaries, and then noticed this in other applications using WinUI.
All reactions