问题
I have written a program that utilizes 2 3rd party dll's and I want to use ILMerge to merge both dll's into 1 executable.
I have tried using the command line:
ilmerge /target:winexe /out:final.exe normal.exe 3rd_party_dll_1.dll 3rd_party_dll_2.dll
but this returns this error:
`Could not load assembly from the location 'C:\Users\...' Skipping and processing trest of arguments. `
Am I missing something or is it possible that these dll's cannot be merged?
回答1:
ILMerge doesn't work on native dlls out of the box, but there is a workaround.
来源:https://stackoverflow.com/questions/3910356/ilmerge-using-2-third-party-dlls-c