Why doesn't .NET find the OpenSSL.NET dll?

前端 未结 12 1087
无人及你
无人及你 2020-12-10 05:57

EDIT (the whole question, it was too unclear)

I want to use OpenSSL.NET

The OpenSSL.NET install instructions page: INSTALL

12条回答
  •  佛祖请我去吃肉
    2020-12-10 06:37

    Try using probing. You need to create an XML config file named as the application's executable complete name (or named as the assembly that requieres your non-managed dll) with a .config extension. E.g. if your applications is name myapp.exe, the config file will be named myapp.exe.config The config file must be located in the same directory as the executable / assembly .

    The config file is a simple xml file:

    
    
      
        
          
        
      
    
    

    Now the application will search in PATH when loading the assemblies. PATH is relative to the config /assembly file.

    Not sure if it will work for non-managed dlls, but is worth the try.

提交回复
热议问题