You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When using the TaskScheduler package (https://github.com/dahall/taskscheduler) in a project and using ILRepack to merge all assemblies, I get the following error:
error : Duplicate type System.Collections.Generic.EventedList`1 from GroupControls.dll, was also present in AeroWizard, Version=2.2.3.0, Culture=neutral, PublicKeyToken=915e74f5d64b8f37
Obviously, the same type is present in two repedent packages. How can I configure ILRepack to handle this problem?
Yes, You have to provide targets file to use AllowedDuplicateNamespaces option which should work similarly to /allowDup. You can use something like the following if you don't want to write every dll into the targets file.
Activity
ravibpatel commentedon Mar 5, 2020
You can try providing ILRepack.targets similar to the following one in your projects folder.
THHoekstra commentedon Mar 5, 2020
Thank you for your answer.
Does that mean I have to specify every assembly to include?
I was hoping for an option similar to /allowDup in "ILMerge"
ravibpatel commentedon Mar 5, 2020
Yes, You have to provide targets file to use AllowedDuplicateNamespaces option which should work similarly to /allowDup. You can use something like the following if you don't want to write every dll into the targets file.
THHoekstra commentedon Mar 5, 2020
Thanks again. That looks good. I will try this.
THHoekstra commentedon Mar 5, 2020
My build fails without any Error Message in the output.
How can I find out what's wrong with my targets file?
ravibpatel commentedon Mar 6, 2020
Try providing a LogFile option. It should show up in the log.
ravibpatel commentedon Mar 6, 2020
Or you can use MSBuild Log Viewer.