Reflection between differents projects (assemblies)

.net, c#, reflection

Solution

If you really want to use reflection to achieve this then look at `Assembly.LoadFrom()`. http://msdn.microsoft.com/en-us/library/system.reflection.assembly.loadfrom.aspx Alternatively, as someone pointed out, you can simply use project references.

Problem

Is there any way, from a given project, to create instances of classes contained in other projects ? I usually use `Assembly.GetExecutingAssembly().CreateInstance()`, but obviously, this call will return NULL as the class I'm specifying is held in another project. Any ideas ?

Original source