Skip to content

directsound playback breaks with trimming enabled #1191

Open
@ispysoftware

Description

Setting
<PublishTrimmed>false</PublishTrimmed> in the .csproj file of any app using net6.0+ breaks directsound playback.
Seems like it's stripping out com references - needs some annotations in there to prevent stripping.
Adding TrimmerRootAssembly and messing with TrimMode doesn't seem to have any effect.
Disabling trimming fixes it but results in a 200mb file instead of a 50mb file

Activity

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

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