如何将 DLL 文件添加到 Azure WebJob,或链接到相应 Azure AppService 中随时可用的 DLL 文件?
我的 WebJob 是一个控制台应用程序,每天在 Cron 架构上运行。
当我手动测试时,它失败了
Unhandled Exception: System.IO.FileNotFoundException: Could not load file or assembly 'MyIISApp, Version=1.2.3.4, Culture=neutral, PublicKeyToken=null' or one of its dependencies. The system cannot find the file specified.
但我无法在 Azure WebJob 文件上传过程中选择多个文件。
我已经尝试将 EXE 文件与 DLL 一起上传到我的 Azure AppService,但我无法在 WebJobs 选项卡的任何位置选择此 EXE 文件执行 - 它总是需要单个文件上传。
请您参考如下方法:
上传 .zip 文件而不是 .exe 文件。 zip 必须包含所有必需的文件(exe、dll 等)
