Skip to content

Reduce the toolkit impact on application size #3145

@vgromfeld

Description

@vgromfeld

Describe the problem this feature would solve

Trying to know what is the impact of the toolkit on the application final size, I've created two blank applications using Visual Studio. On one of them, I've added a dependency to Microsoft.Toolkit.Uwp.UI. I've only added the nuget dependency. I'm not using anything from the library.

Here are the sizes of the applications' dll when compiled in release using .Net Native:

x86 x64
Default blank app 748 919
Using Toolkit 6,171 7,253

Values are in KB. .Net Native directives' files are empty..

This huge impact comes from the fact that the blank app template is super minimal.
On our application, we are seeing a 2MB increase on both x86 and x64. This is still an important impact (knowing that nothing is used).

Is there a way to reduce the impact of the toolkit on the final binary size ?

Sample projects

UwpToolkitBinaryImpact.zip

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions