-
-
Notifications
You must be signed in to change notification settings - Fork 18
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Enable IL trimming to reduce app size / 启用裁剪以减小应用体积 #14
Comments
Build log
|
CommunityToolkit is not compatible with trimming. Either removing usages to CommunityToolkit or rooting all assemblies from CommunityToolkit. |
TaskScheduler is not compatible with IL trimming (because of COM™): dahall/TaskScheduler#948 Energy Star X uses If I remove Some experiments on
Log
|
Looks like IL trimming breaks Visual Studio App Center SDK. |
似乎trimming对带UI的.NET程序的支持性都不佳。 |
The problem you want to solve / 你想要解决的问题
App size is too big (150 MB).
应用大小太大了(150 MB)。
Possible solution / 可能的解决方法
Windows App SDK 1.2 now supports .NET IL trimming, which can help reduce binary size.
https://learn.microsoft.com/windows/apps/windows-app-sdk/stable-channel#trimming-for-apps-developed-with-net
However when I enabled trimming, this app will crash on launch.
microsoft/WindowsAppSDK#2478
microsoft/CsWinRT#373
Windows App SDK 1.2 现在支持 .NET IL 裁剪了,这可以帮助减小二进制大小。
https://learn.microsoft.com/windows/apps/windows-app-sdk/stable-channel#trimming-for-apps-developed-with-net
但是当我启用裁剪时,应用启动时会崩溃。
microsoft/WindowsAppSDK#2478
microsoft/CsWinRT#373
Additional context / 其他信息
There's also a bug with TeachingTip in Windows App SDK 1.2.
microsoft/microsoft-ui-xaml#7937
microsoft/microsoft-ui-xaml#8003
Windows App SDK 1.2 的 TeachingTip 也有 Bug。
microsoft/microsoft-ui-xaml#7937
microsoft/microsoft-ui-xaml#8003
The text was updated successfully, but these errors were encountered: