Use DLL that is not installed on the system

不羁岁月 提交于 2019-12-25 18:45:18

问题


I am creating a C# CustomAction DLL from which I have to use another DLL that is not (yet) installed on the target system, but included in my installer.

How will I be able to use this DLL in my C# CustomAction?

The reason is that I have to check whether the provided credentials are accepted by the Web service this DLL hooks into before I write the credentials into web.config and encrypt web.config.


回答1:


You could always try this - seems to be what you're looking for, a way to get the Dll and call it without installing it:

http://www.codeproject.com/Articles/528178/Load-DLL-From-Embedded-Resource




回答2:


I think you can go to the DLL Properties and set Copy To Local = true. By default is false.



来源:https://stackoverflow.com/questions/24888239/use-dll-that-is-not-installed-on-the-system

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!