Skip to content

IL2104: Assembly produced trim warnings #17

Open

Description

@hunterdyar

Had an issue using this library, where it didn't subscribe to devices correctly - but only in a release build. I eventually noticed the "IL2104: Assembly produced trim warnings" message and learned it had to do with the "Trim Unused Assemblies" option, which I turned off as a workaround. Only tested on win-x86 target.

This Prepare Libraries For Trimming would be my starting point. Hopefully I'll be able to dig in later and submit a PR.

Activity

  1. thargy commented on Apr 15, 2026

    @thargy
    Member

    Thank you for looking into this and being willing to submit a PR. I am in teacher training as part of my retirement and am swamped with work, so I appreciate any contributions. I will try to review any PR promptly.

    However, on brief glance, I suspect you're in for a world of disappointment. HIDDevices, by it's nature uses a lot of reflection and contains some weird and wonderful manipulations, that, on the face of it, don't seem that compatible with trimming!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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