Checks if a given file is an assembly.
True if the file is a valid assembly, false if it's not or if the assembly seems corrupted (invalid headers or metadata).
Exception Type | Condition |
---|---|
ArgumentNullException | assemblyFile is a null String. |
ArgumentException | assemblyFile is an empty String. |
FileNotFoundException | assemblyFile is not found, or the file you are trying to check does not specify a filename extension. |
SecurityException | The caller does not have path discovery permission. |
FileFunctions Class | NAnt.Core.Functions Namespace