Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
625
ILMerge for Infragistics 13.2 assemblies fails
posted

In the context of some other thread I tried to ILMerge a set of Infragistics WinForms 13.2 assemblies.

Unfortunately the merging fails there. I did the following:

"\Program Files (x86)\Microsoft\ILMerge\ILMerge.exe" /copyattrs /allowMultiple  /log:mergeresults.txt /out:Merged.UI.Ext.dll /targetplatform:v4,"C:\Windows\Microsoft.NET\Framework\v4.0.30319" Infragistics4.Win.v13.2.dll Infragistics4.Shared.v13.2.dll Infragistics4.Win.Misc.v13.2.dll Infragistics4.Win.UltraWinGrid.v13.2.dll Infragistics4.Win.UltraWinEditors.v13.2.dll

I get the error:

ERROR!!: Duplicate type 'Infragistics.Win.UIAutomation.UiaProviderControlNativeWindow' found in assembly 'Infragistics4.Win.UltraWinGrid.v13.2'. Do you want to use the /alllowDup option?
An exception occurred during merging:
ILMerge.Merge: ERROR!!: Duplicate type 'Infragistics.Win.UIAutomation.UiaProviderControlNativeWindow' found in assembly 'Infragistics4.Win.UltraWinGrid.v13.2'. Do you want to use the /alllowDup option?
at ILMerging.ILMerge.MergeInAssembly(AssemblyNode a, Boolean makeNonPublic, Boolean targetAssemblyIsComVisible)
at ILMerging.ILMerge.Merge()
at ILMerging.ILMerge.Main(String[] args)

No output is generated. Adding the /allowDup option generates:

An exception occurred during merging:
Unresolved assembly reference not allowed: UIAutomationProvider.
at System.Compiler.Ir2md.GetAssemblyRefIndex(AssemblyNode assembly)
at System.Compiler.Ir2md.GetTypeRefIndex(TypeNode type)
at System.Compiler.Ir2md.VisitReferencedType(TypeNode type)
at System.Compiler.Ir2md.VisitMethod(Method method)
at System.Compiler.Ir2md.VisitInterface(Interface Interface)
at System.Compiler.Ir2md.VisitModule(Module module)
at System.Compiler.Ir2md.SetupMetadataWriter(String debugSymbolsLocation)
at System.Compiler.Ir2md.WritePE(Module module, String debugSymbolsLocation, BinaryWriter writer)
at System.Compiler.Writer.WritePE(String location, Boolean writeDebugSymbols, Module module, Boolean delaySign, String keyFileName, String keyName)
at System.Compiler.Writer.WritePE(CompilerParameters compilerParameters, Module module)
at ILMerging.ILMerge.Merge()
at ILMerging.ILMerge.Main(String[] args)

Again not output is generated. 

Isn't it possible to merge the v13.2 assemblies?

Best regards

Uwe

Parents
No Data
Reply
  • 53790
    Verified Answer
    posted

    Hello Uwe,

    unassal said:
    Isn't it possible to merge the v13.2 assemblies?

    Yes, it is possible. I made quick tests using version 13.2 and I was able to reproduce the same errors, that you describe in your post. To resolve the issue with "ERROR!!: Duplicate type 'Infragistics.Win.UIAutomation.UiaProviderControlNativeWindow' " we should use /allowDup option. About the second issue "Unresolved assembly reference not allowed: UIAutomationProvider" we should add few assemblies in the Reference folder of our project or describe the exact path using /Lib: and also to define /targetplatform. Please take a look on attached video file for more details and post-build that I used in my test sample:

    “C:\Program Files (x86)\Microsoft\ILMerge\ILMerge.exe” /wildcards /copyattrs /allowMultiple /allowDup /ndebug /closed /targetplatform:v4,"%ProgramFiles%\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.0" /log:"D:\Workdir\Projects\UltraGridCustomFilterILMerge_4\UltraGridCustomFilterILMerge\ILMerge.log" /out:"D:\Workdir\Projects\UltraGridCustomFilterILMerge_4\UltraGridCustomFilterILMerge\PublishMerged1.dll" "D:\Workdir\Projects\UltraGridCustomFilterILMerge_4\UltraGridCustomFilterILMerge\bin\Debug\Infragistics4.Shared.v13.2.dll" "D:\Workdir\Projects\UltraGridCustomFilterILMerge_4\UltraGridCustomFilterILMerge\bin\Debug\Infragistics4.Win.Misc.v13.2.dll" "D:\Workdir\Projects\UltraGridCustomFilterILMerge_4\UltraGridCustomFilterILMerge\bin\Debug\Infragistics4.Win.UltraWinGrid.v13.2.dll" "D:\Workdir\Projects\UltraGridCustomFilterILMerge_4\UltraGridCustomFilterILMerge\bin\Debug\Infragistics4.Win.v13.2.dll" "D:\Workdir\Projects\UltraGridCustomFilterILMerge_4\UltraGridCustomFilterILMerge\bin\Debug\Infragistics4.Win.UltraWinEditors.v13.2.dll"

    Let me know if you have any questions.

    Regards

    Video333.rar
Children