Can i upload silverlight dll (reflection only) to a .net app?

I understand the difference in SL and .net CLR and the class library, and I don’t want to execute any code (just request some attributes and check if some types implement the interface declared in the general assembly).

But I can not load the SL dll from Assembly.LoadFrom because it did not find the dependencies (for example, System.Windows.dll, etc.). I tried Assembly.ReflectionOnlyLoadFrom, but it gives me almost the same error (cannot load dependencies) with just a different wording ...

Is there any way to reflect the SL assembly from outside the SL?

+3
source share
2 answers

LoadFrom ReadOnlyLoadFrom. , , System.Windows ..
AppDomain.Current.AssemblyResolve SL . , SL (c:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\Silverlight\v4.0)

+1

(System.Windows.dll ..) , Silverlight, .

/ ( " " ), ( , ) .

+2

Source: https://habr.com/ru/post/1792065/


All Articles