我正在尝试将CabalMain.exe与我下载ilmerge的crckd.dll合并,然后进入>程序giles(x86)> Microsoft> Ilmerge 然后我做了这个。
C:\Program Files (x86)\Microsoft\ILMerge>ilmerge CabalMain.exe crckd.dll /out:me
rged.exe
An exception occurred during merging:
ILMerge.Merge: Could not load assembly from the location 'C:\Program Files (x86)
\Microsoft\ILMerge\CabalMain.exe'. Skipping and processing rest of arguments.
at ILMerging.ILMerge.Merge()
at ILMerging.ILMerge.Main(String[] args)
任何人都可以帮我理解我做错了吗?
答案 0 :(得分:2)
您需要指定要合并的文件的完整路径,而不仅仅是其名称。否则ILMerge正在寻找安装在它的同一目录:
C:\Program Files (x86)\Microsoft\ILMerge>ilmerge C:\path\to\your\program\CabalMain.exe C:\path\to\your\program\crckd.dll /out:C:\path\to\your\program\merged.exe
您也可能想要指定一个路径,否则它会尝试将其写入Program Files(由于权限很有可能失败)。