Suzanne Cook's .NET CLR NotesCommon Language Runtime DeveloperDetermining Whether a File Is an Assembly- March 18, 2004 A file is an assembly if and only if it's managed and it contains an Assembly entry in its CLR metadata. Determining by hand A fast way to determine whether a file is an assembly is to run ildasm.exe on it. If it immediately gives an error saying that it may not be a PE file, then it's not a managed file. But, if it is an assembly, then ildasm will show an entry for the Assembly definition (.assembly in the MANIFEST window or at the bottom of the original window). Determining...http://blogs.msdn.com/suzcook/archive/2004/03/17/determining-whether-a-file-is-an-assembly... |