Getting Runtime Assemblies in Silverlight 3
Posted
by WoutervD
on Stack Overflow
See other posts from Stack Overflow
or by WoutervD
Published on 2010-04-14T13:07:24Z
Indexed on
2010/04/17
13:33 UTC
Read the original article
Hit count: 422
Hello,
I am currently writing a framework dll which has an AssemblyHelper. This helper stores Runtime and UserAdded assemblies to easily instantiate new objects.
The .NET part of the framework uses:
AppDomain MyDomain = AppDomain.CurrentDomain;
Assembly[] AssembliesLoaded = MyDomain.GetAssemblies();
_runtimeAssemblies = AssembliesLoaded;
This gets me all the assemblies I need.
But the problem is I can't use this with Silverlight and I have no idea what to use now. Currently I am using:
Assembly[] AssembliesLoaded = {Assembly.GetCallingAssembly()};
But this only adds the Assembly of my framework and not the one of the application or any other runtime assembly.
What should I use? please help!
Thanks in advance,
Wouter
© Stack Overflow or respective owner