我有一個自定義DLL,它依賴於project.json中的包。我收到以下錯誤:Azure函數中的自定義DLL可以依賴於project.json中的Nuget包嗎?
2017-05-25T21:04:18.152 Exception while executing function:
Functions.TimerTriggerCSharp1. mscorlib: Exception has been thrown by the target of an invocation. f-TimerTriggerCSharp1__631134587: Could not load file or assembly 'MyAssemblyName, Version=MyAssemblyVersion, Culture=neutral, PublicKeyToken=MyAssemblyToken' or one of its dependencies. The system cannot find the file specified.
我已經在bin /文件夾中添加了程序集,並且引用了完整路徑。程序集依賴於我在project.json中定義的其他Nuget包。
任何想法,爲什麼我得到錯誤?
最近我問了一個類似的問題。看看那裏的信息是否可以幫助你(以及在生成的GitHub線程中):https://stackoverflow.com/questions/42478305/how-do-i-load-nuget-packages-that-a-custom-dll-depends-在 – Jaxidian