Is there an equivilent to this in silverlight?
var assemblies = AppDomain.CurrentDomain.GetAssemblies();
http://msdn.microsoft.com/en-us/library/system.appdomain.getassemblies(v=VS.95).aspx
Is there another way of doing this?
Here's a post on how to do it for design time under blend... but how at runtime?
http://joshsmithonwpf.wordpress.com/2010/01/06/the-ultimate-hack-for-silverlight-in-blend/
Doesn't look like this is possible:
Getting Runtime Assemblies in Silverlight 3
http://forums.silverlight.net/p/22050/77847.aspx
http://forums.silverlight.net/t/22050.aspx/1?Get+a+list+of+loaded+assemblies
I'm not getting it to work in my SL4 project either, but I tried to cast the the current domain to a dynamic and it works, a dummy workaround until I get VS2010 to recognize that I' using the correct mscorlib.
Dummy workaround:
var loadedAssemblies = ((dynamic)Thread.GetDomain()).GetAssemblies()as Assembly[];
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With