ILMerge usually merges my assemblies fine when building a Release, but when Publishing for ClickOnce the resulting EXE doesn't contain the DLLs that were supposed to be merged.
I think ILMerge is working, but Publish is overwriting the new merged assembly with the old original one. I made a Post-Build event that stopped the build right after ilmerge ran, and it was merged as expected.
Why is this happening, and is there a workaround?