Finding .NET assemblies in a directory

Hello,

I am currently using FinalBuilder 6 and I am doing many great stuff with it.
I was wondering...

Is there a way to test .exe and .dll with FinalBuilder to know if they use the CLR (they are .NET Assemblies) ?

Thank you very much.

Hi Luc,

We don’t have an in-built action to detect whether a file is an assembly or not but you should be able to write a small .Net custom action which does something like what is mentioned in this blog post: http://blog.lozanotek.com/archive/2004/11/15/159.aspx.

Regards,
Paul.

Hi Luc

Another simple way to detect it is to run the CorFlags utilitly (part of the .net sdk) against the dll - if it’s and assembly then it will return 0 as it’s exit code, otherwise 1.

HTH



Thank you very much Vincent :)
It worked perfectly