有没有将多个dll合并成为一个dll的工具或方法?

snowfield 2011-12-11 10:19:36
刚刚在解决用Qt无法直接调用第三方dll时,已经再次封装了一次。原来就已经有两个dll,现在三个了,不是很爽。之前见过有将dll打包到exe文件中的工具。现在想了解一下,有没有将多个dll合并成一个dll的工具或方法。
先谢了!
...全文
1152 4 打赏 收藏 转发到动态 举报
写回复
用AI写文章
4 条回复
切换为时间正序
请发表友善的回复…
发表回复
ygtat 2013-08-12
  • 打赏
  • 举报
回复
引用 3 楼 snowfeild 的回复:
多谢念茜! 下载安装后执行报错:Unable to find a version of the runtime to run this application 又去下载安装了.net framework 3.5后可以正常执行。 在用ILMerger合并过程中还是遇到了问题: >ILMerge.exe /t:dll /log a.dll seg.dll tool.dll /out:m.dll 其中a.dll是我自己的生成的,其中调用了seg.dll和tool.dll。 错误信息如下: Set platform to 'v2', using directory 'C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\..\v2.0.50727' for mscorlib.dll Running on Microsoft (R) .NET Framework v2.0.50727 mscorlib.dll version = 2.0.0.0 The list of input assemblies is: a.dll Trying to read assembly from the file 'E:\test\a.dll'. Could not load assembly from the location 'E:\test\a.dll'. Skipping and processing rest of arguments. An exception occurred during merging: ILMerge.Merge: Could not load assembly from the location 'E:\test\a.dll'. Skipping and processing rest of arguments. 在 ILMerging.ILMerge.Merge() 在 ILMerging.ILMerge.Main(String[] args) google到如下信息: ILMerge doesn't work on native dlls out of the box, but there is a workaround seg.dll和tool.dll是第三方dll,是用vc6生成的。不知道是不是涉及兼容问题? 不是很明白,请指教!
话说你解决了吗?这个怎么弄的?
snowfield 2011-12-12
  • 打赏
  • 举报
回复
多谢念茜!
下载安装后执行报错:Unable to find a version of the runtime to run this application
又去下载安装了.net framework 3.5后可以正常执行。
在用ILMerger合并过程中还是遇到了问题:

>ILMerge.exe /t:dll /log a.dll seg.dll tool.dll /out:m.dll
其中a.dll是我自己的生成的,其中调用了seg.dll和tool.dll。
错误信息如下:

Set platform to 'v2', using directory 'C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\..\v2.0.50727' for mscorlib.dll
Running on Microsoft (R) .NET Framework v2.0.50727
mscorlib.dll version = 2.0.0.0
The list of input assemblies is:
a.dll
Trying to read assembly from the file 'E:\test\a.dll'.
Could not load assembly from the location 'E:\test\a.dll'. Skipping and processing rest of arguments.
An exception occurred during merging:
ILMerge.Merge: Could not load assembly from the location 'E:\test\a.dll'. Skipping and processing rest of
arguments.
在 ILMerging.ILMerge.Merge()
在 ILMerging.ILMerge.Main(String[] args)

google到如下信息:
ILMerge doesn't work on native dlls out of the box, but there is a workaround

seg.dll和tool.dll是第三方dll,是用vc6生成的。不知道是不是涉及兼容问题?
不是很明白,请指教!
念茜 2011-12-11
  • 打赏
  • 举报
回复
使用ILMERGE来合并成一个

21,469

社区成员

发帖
与我相关
我的任务
社区描述
Qt 是一个跨平台应用程序框架。通过使用 Qt,您可以一次性开发应用程序和用户界面,然后将其部署到多个桌面和嵌入式操作系统,而无需重复编写源代码。
社区管理员
  • Qt
  • 亭台六七座
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧