tom-englert / ILMerge.Fody

Merges the referenced types of local dependencies as private types into the target assembly, and removes the references to the local dependencies.
MIT License
36 stars 5 forks source link

Types only referenced by attributes are incorrectly stripped #7

Closed Rohansi closed 3 years ago

Rohansi commented 3 years ago

Example is System.Collections.Immutable.ImmutableArray<T>.Builder, which has the following attribute:

[DebuggerTypeProxy(typeof(ImmutableArrayBuilderDebuggerProxy))]

The resulting assembly will fail to load because ImmutableArrayBuilderDebuggerProxy was stripped. There are other instances of this for the other collection types in the same library.