Skip to content

Remove embedded resources when using dotnet trimmer #422

@tranb3r

Description

@tranb3r

I was previously using Portable.BouncyCastle in my app, and I'd like to migrate to BouncyCastle.Cryptography.
However, Portable.BouncyCastle.dll 1.9.0 weights about 3MB, while BouncyCastle.Cryptography.dll 2.1.1 weights more than 6MB, because of a few embedded resources.
In my app I'm using dotnet trimmer to remove useless code, and this works fine with Portable.BouncyCastle.
However, with BouncyCastle.Cryptography, the trimmer does not remove the embedded resources, resulting in the size of my app increasing by more than 3MB.

What are those embedded resources?
Is there any solution to trim them?

Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions