Fody and dynamic dependency update (AssemblyResolve event)

自闭症网瘾萝莉.ら 提交于 2019-12-13 07:17:31

问题


I'm writing an auto-update system, where WPF App loads its dependencies (dlls) dynamically. I'm using the AssemblyResolve event for that. Then I found Costura.Fody and saw that it simplifies things. However, Fody doesn't allow loading of an updated version of a dependency, for example if I have dll v1.0.0.0 embedded with Fody, but would have v2.0.0.0 loaded from the web server.

Is there a hook in Fody for AssemblyResolve event so that I could then load whichever dependency I want, in stead of what Fody knows, or suggests?

-pom-


回答1:


Not really. Costura was designed as more of a hands-off system, where it just handles finding the dependencies and loading them automatically. What you want to do is control that process and add your own logic.



来源:https://stackoverflow.com/questions/28323709/fody-and-dynamic-dependency-update-assemblyresolve-event

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!