Inno setup Inno安装程序:在.net dll中添加第三方引用无效

Inno setup Inno安装程序:在.net dll中添加第三方引用无效,inno-setup,pascalscript,Inno Setup,Pascalscript,我正在使用.net类库作为inno脚本中的dll。 我在类库中添加了SSH.Net作为第三方引用,用于连接到SFTP [Code] function DownloadFile(host: WideString; port: Integer; path: WideString; user: WideString; password: WideString; outputhPath: WideString; out message: WideString): Boolean; external 'D

我正在使用.net类库作为inno脚本中的dll。 我在类库中添加了SSH.Net作为第三方引用,用于连接到SFTP

[Code]
function DownloadFile(host: WideString; port: Integer; path: WideString; user: WideString; password: WideString; outputhPath: WideString; out message: WideString): Boolean;
external 'DownloadFile@files:InnoPlugin.dll stdcall';
在正常情况下,它工作正常,但当我在函数中使用ssh.net的任何方法或类时,它会给出外部异常

我的项目的平台目标设置为x86


我们不能包括任何额外的第三方引用吗?

调用Init();在此之前,我的函数似乎对我不起作用。谢谢@MartinPrikryl。我犯了一个愚蠢的错误,没有在external子句中包含额外的dll。调用Init();在此之前,我的函数似乎对我不起作用。谢谢@MartinPrikryl,我犯了一个愚蠢的错误,没有在external子句中包含额外的dll。