0

I would like to scan a directory for any assemblies that are not already referenced in the project then load all instances of a class that implements IMyInterface.

I know that the Assembly.LoadFile method can help me out here but how do I determine if the assembly that I am loading was already referenced statically? I do not want to load any assemblies twice.

George Mauer
  • 117,483
  • 131
  • 382
  • 612

1 Answers1

1

You can use AppDomain.GetAssemblies to see which are already loaded.

John Saunders
  • 160,644
  • 26
  • 247
  • 397