Is there an equivalent to AppDomain.AssemblyResolve in Windows storage apps?

I want to add an event to the AppDomain.AssemblyResolve in a Windows Store application. But AppDomain doesn't exist.

Is there an alternative way to get the same functionality?

+3


source to share


2 answers


The DLL concept of lying in unpredictable places is unreliable. Of course AssemblyResolve can handle this, but accidents happen all the time. And they are without a doubt one of the worst, DLL Hell is a usability nightmare that gives the victim a decent chance to fix the problem.



WinRT was designed to address this kind of chronic Windows usability issues. The Windows Store app must be packaged, all executables required for the app must be shipped together in one download from the store. Therefore, you should never try to find a DLL at runtime, it is always part of the package and in a predictable location. Accordingly, the AssemblyResolve event has been removed from the referenced assembly and no longer serves any purpose.

+1


source


There is no and no equivalent. AppDomain.AssemblyResolve

allows you to download arbitrary code that is prohibited in Windows Store apps.



+1


source







All Articles