[This is preliminary documentation and subject to change.]
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).
Missing <remarks> documentation for M:NAnt.Core.Functions.FileFunctions.IsAssembly(System.String)
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. |
FileLoadException | The file could not be loaded for some reason. |
FileFunctions Class | NAnt.Core.Functions Namespace