问题描述
我正在创建一个C#CustomAction DLL,从中我必须使用目标系统上尚未安装的另一个DLL,但包含在我的安装程序中。
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.
我如何能够在C#CustomAction中使用这个DLL?
How will I be able to use this DLL in my C# CustomAction?
原因是我必须检查提供的凭据是否被Web服务接受此DLL在将凭证写入web.config并加密web.config之前,将钩子插入。
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.
推荐答案
你可以随时尝试 - 似乎是你正在寻找的,一种获取Dll并在不安装它的情况下调用它的方法:
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:
这篇关于使用系统上未安装的DLL的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!