Skip to content

Force exclude a library reference from being merged in #40

@MWstudios

Description

@MWstudios

I'm trying to merge a library X that references an optional library Y (it can run without it, any potential exceptions are ignored). However, ILRepack goes out of its way to merge all references, including the optional ones that I removed from my project, which results in "Failed to resolve assembly: Y". I tried adding <InputAssemblies Exclude="Y"/> but the error still occurs.

The only solution I can think of is to make a copy of X that doesn't reference Y at all, but then I would have to update two copies of X in parallel.

How can I force exclude a library reference so ILRepack won't try to merge it?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions