8000 An error occurred while merging DLLs · Issue #401 · gluck/il-repack · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

An error occurred while merging DLLs #401

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
lucky51 opened this issue Apr 30, 2025 · 1 comment
Open

An error occurred while merging DLLs #401

lucky51 opened this issue Apr 30, 2025 · 1 comment

Comments

@lucky51
Copy link
lucky51 commented Apr 30, 2025

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?

@KirillOsenkov
Copy link
Collaborator

Would you be able to provide a minimal isolated repro so that we can debug?

Or just debug on your own repro and send a PR.

The fix is likely easy.

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

No branches or pull requests

2 participants
0