List all DLL's implementing a specific interface from the GAC

后端 未结 5 1817
借酒劲吻你
借酒劲吻你 2021-01-21 09:49

Aloha

Given a plug-in architecture (C# / .NET 3.5) with the plug-ins stored in the GAC, how can I list/load all dll\'s that contain types that implement my specific inte

5条回答
  •  不思量自难忘°
    2021-01-21 10:20

    To add to BFree's answer, I suggest that you could load the assemblies for reflection only. This gives you enhanced security (the assemblies aren't able to execute at all) without appdomains, and flexibility (you can load assemblies that are for a different architecture).

提交回复
热议问题