What triggers Azure Functions to reload the referenced assemblies?

I've been referencing external assemblies trying to work around the issue noted here: Azure Function Cannot Load Portable Assembly. However, often my function does not seem to reflect the changes made to the functionNamebin assemblies. I've intentionally referenced the wrong assemblies, and then reran the function. I experience no change to what is logged (and I'm logging exceptions).

How do I force a complete reload of the Azure function? Can I somehow see what Azure functions has as its "loaded" assemblies?


If the only thing changing is the implementation and not the assembly identity (name, version, etc.), you'd indeed see this behavior as an assembly with a matching identity would already be loaded and that would be used.

Restarting your Function App site (under Function app settings > Go to app service settings > Restart) should trigger a host restart, which will force all assemblies to be reloaded.

You can also Kill the non-scm w3wp.exe process using Kudu (https://yourappname.scm.azurewebsites.net), under Process Explorer, which will also force a host restart.

链接地址: http://www.djcxy.com/p/92582.html

上一篇: Visual Studio代码不在OS X上加载符号

下一篇: 什么触发Azure函数来重新加载引用的程序集?