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: 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
ILRepack version 2.0.41
error:
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?