Skip to content

An error occurred while merging DLLs #401

@cappuccino8

Description

@cappuccino8

ILRepack version 2.0.41

C:\Build\ILRepack.2.0.41\tools\ILRepack.exe /targetplatform:v4 /out:..\..\bin\Debug\MergedDlls\SPSESolution.dll /keyfile:C:\code\key.snk /allowdup /log:..\..\bin\Debug\ILMerge.log /wildcards "..\..\bin\Debug\SPSESolution.dll" "..\..\bin\Debug\LIB.*.dll"

error:

-----------------------------------------------
ERROR: Failed to merge configuration files: System.InvalidCastException: Unable to cast object of type 'System.Xml.Linq.XComment' to type 'System.Xml.Linq.XElement'.
   at ILRepacking.ConfigMerger.MergeElements(XElement parentA, XElement parentB) in /_/ILRepack/ConfigMerger.cs:line 86
   at ILRepacking.ConfigMerger.MergeElements(XElement parentA, XElement parentB) in /_/ILRepack/ConfigMerger.cs:line 89
   at ILRepacking.ConfigMerger.Process(ILRepack repack) in /_/ILRepack/ConfigMerger.cs:line 47
Wrote C:\code\bin\Debug\MergedDlls\SPSESolution.dll

https://github.com/gluck/il-repack/blob/master/ILRepack/ConfigMerger.cs#L86
Is it necessary to add a condition to check if a XNode is a XElement?

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions