Search code examples
c#visual-studiowinformsdllilmerge

ILMerge error: "try to set ILMergeDebugInfo to false"


I'm using Winforms to make an exe that can open a web page. The following are the dependencies I use:

enter image description here

Then I introduced ILMerge and MSBuild.ILMerge.Task, and then regenerated the project in order to merge these dependencies into the exe, but the following error occurred

Possible reason: some of the merge assemblies have portable PDBs. Try to set lLMergeDebuginfo to false.

ILMerge.Merge: There were errors reported in CefSharp.Core.Runtime's metadata. Unsupported PDB deleted bitset is not empty.

enter image description here

What's happening and how to fix this issue? Or is there any other more reliable way to merge dll into exe?


Solution

  • CefSharp relies on a bunch of unmanaged dlls to get its job done.

    They can't be merged, so there is very little point in trying to merge at all.

    Universal one-file deployment is a setup.exe installer, that's no problem.