I have a collection of assemblies using reflection. I want to loop through them, but I would like to ignore the .NET framework or ASP.NET framework DLL's. Is there an attribute on the assembly that marks that its from the .NET framework? Or any other designation?

I was looking at the name, and if the name of the assembly starts with System, Microsoft, or mscorlib, I am ignoring it. But I was wondering if there is a flag I can use to make this even easier?

有帮助吗?

解决方案

You might find this answer to a related question useful

其他提示

Does the "GlobalAssemblyCache" property qualify for your requirement? http://msdn.microsoft.com/en-us/library/system.reflection.assembly.globalassemblycache.aspx

Propably also depends on how you are loading your assemblies collection. If the above mentioned suggestion doesn't work for you, please clarify that.

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top