How to configure MEF (Managed Extensibility Framework) to download signed assemblies only

I have an application that uses MEF to dynamically load assemblies. However, I am currently loading my assemblies whether they are signed or not. I want other people not to go into their own assemblies and download my application and not launch them. I would like MEF to download only assemblies that were signed by me.

Can this be done? If so, how?

thank

+3
source share
2 answers

Yes. Make a directory a filter directory that checks if the public key of the assembly is the one you specified. )

+1
source

, , : , MEF

+1

All Articles