packagesILMerge.3.0.41toolsnet452
看到exe文件就可以使用了
3、WIN+ R 进入CMD 4、进入ILmerge所在的目录进盘用
D:
命令 D为盘符,具体根据自己的来
进入后,复制
解决方案所在目录packagesILMerge.3.0.41toolsnet452
输入ILMerge
出现以下界面即可
ILMerge /ndebug /target:winexe /targetplatform:v4 /out:C:UsersDesktoptestBMCDebugTool.exe /log C:UsersDesktoptestBMCDebugToolUI.exe C:UsersDesktoptestBMCDebugToolBLL.dll C:UsersDesktoptestBMCDebugToolCom.dll C:UsersDesktoptestBMCDebugToolModel.dll
这里是将BMCDebugToolUI.exe 、BMCDebugToolBLL.dll 、BMCDebugToolCom.dll 、BMCDebugToolModel.dll 三个dll合并到BMCDebugTool.exe
说明:
ILMerge /ndebug /target:library /targetplatform:v4 /out:C:UsersDesktoptestBMCDebugToolB.dll /log C:UsersDesktoptestlog4net.dll C:UsersxueyonganDesktoptestNPOI.dll C:UsersDesktoptestBouncyCastle.Crypto.dll C:UsersDesktoptestICSharpCode.SharpZipLib.dll注意
- target要写 /target:library
- 如果dll有依赖项,依赖项也必须添加进去,这里的NPOI 在NuGet中下载的最新版,依赖BouncyCastle.Crypto.dll 和ICSharpCode.SharpZipLib.dll,如果不添加进去,会一致报错
最后DOS窗口出现done 无报错则可用



