GAC 中的 mshtml.dll?
将 msHtml.dll
添加到我的项目后,我可以看到该 dll 是从 MS-Office 工具获取的,而不是从 GAC 获取的。
因此,它为我的 ClickOnce 项目增加了超过 7 MB 的空间,这对下载者来说是不利的。
看来我需要它才能在 winforms WebBrowser 中直接编辑 HTML 文档。
有人知道解决方法吗?
Having added msHtml.dll
to a project of mine, I can see the dll is taken from MS-Office tools and NOT from the GAC.
Consequently, it adds over 7 Megabytes to my ClickOnce project, which is bad for downloaders.
It seems I needed it in order to directly edit HTML document within winforms WebBrowser.
Does somebody know a workaround?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
无论如何,您通常无法随您的产品合法地重新分发 Microsoft DLL。检查它作为安装的先决条件,然后配置您的应用程序以在目标计算机上的任何位置使用它。
You usually can't legally redistribute Microsoft DLLs with your product anyways. Check for it as a pre-requirement to installation and then configure your application to use it wherever it lives on the target machine.
我不会争论包括该集会的合法性,但我会告诉你这一点。如果您确实发布它,它会将其缓存在用户计算机上自己的文件夹和部署中。然后,当您发布更新时,当 ClickOnce 更新时,它将根据客户端计算机上的本地缓存检查服务器上的更新,如果没有更改,将从客户端计算机上的缓存文件夹中复制它。因此它不会在网络上多次复制它。
I'm not going to argue the legalities of including that assembly, but I WILL tell you this. If you do publish it, it will cache it on the user's machine in its own folder AND in the deployment. Then when you publish an update, when ClickOnce updates, it will check the one on the server against the local cache on the client machine, and if it hasn't changed, will copy it from the cached folder on the client machine. So it won't copy it across the network more than once.