Summary
Checks if a given file is an assembly.
Syntax
[Function("is-assembly")]
public bool IsAssembly(string assemblyFile)
Attributes
Type |
Description |
FunctionAttribute |
Indicates that the method should be exposed as a function in NAnt build
files.
|
Parameters
Name |
Type |
Description |
assemblyFile |
string |
The name or path of the file to be checked. |
Return Value
Type |
Description |
bool |
True if the file is a valid assembly, false if it's not or if the assembly seems corrupted (invalid headers or metadata). |