Skip to content
This repository has been archived by the owner on Mar 19, 2021. It is now read-only.

Assembly attributes not copied #96

Open
tholesen opened this issue Dec 10, 2020 · 0 comments
Open

Assembly attributes not copied #96

tholesen opened this issue Dec 10, 2020 · 0 comments

Comments

@tholesen
Copy link

My simplified scenario is that I have two .NET 4.8 class libraries: AssemblyA with some logic and AssemblyB with some assembly attributes (e.g. Copyright and Company) that I want copied over into AssemblyA, overwriting any existing duplicate attributes.

When I use /copyattrs option (ilmerge /copyattrs /out:merged.dll AssemblyA.dll AssemblyB.dll), then merged.dll only has the assembly attributes of AssemblyA, no matter if e.g. Copyright is blank or not in AssemblyInfo.cs of AssemblyA. No attributes from AssemblyB are copied over. No errors in log file.

For testing, I have tried using the /attr option (ilmerge /attr:AssemblyB.dll /out:merged.dll AssemblyA.dll) and this works, as it overwrites all attributes in AssemblyA with those in AssemblyB, but I would like the attributes merged instead and was expecting the /copyattrs option to do this for me.

Am I using/understanding it wrong or is there a bug?

Environment:
ILMerge, version 3.0.41
Assemblies built as .NET 4.8 class libraries with VS 2019, version 16.8.3
Windows 10, version 20H2

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant