c# - How to load assembly dynamically by Assembly.Load in Windows phone 8? -


now have problem, want load assembly dynamically depend on platform(x86,arm). create conditional compilation symbol _m_arm distinguish between x86 , arm.

so use system.reflection.assembly.loadfrom(@"mp3/arm/mp3enclib.dll"), occur exception assembly.loadfrom not support on windows phone.

so use method system.reflection.assembly.load(@"mp3/arm/mp3enclib.dll"), throw exception

additional information: not load file or assembly 'mp3/arm/mp3enclib.dll, culture=neutral, publickeytoken=null' or 1 of dependencies. given assembly name or codebase invalid

private void application_launching(object sender, launchingeventargs e) { #if _m_arm     system.reflection.assembly.load(@"mp3/arm/mp3enclib.dll"); #else      system.reflection.assembly.load(@"mp3/x86/mp3enclib.dll"); #endif } 

this solution enter image description here

anybody know how use method. or better way

i believe must qualify assembly somecompany.somenamespace, version=1.0.0.0, culture=neutral, publickeytoken=null.


Comments

Popular posts from this blog

Android layout hidden on keyboard show -

google app engine - 403 Forbidden POST - Flask WTForms -

c - Why would PK11_GenerateRandom() return an error -8023? -