AssemblyNameFunctions.

GetAssemblyName(string) Method

Summary

Gets the System.Reflection.AssemblyName for a given file.
Assembly
NAnt.Core.dll
Namespace
NAnt.Core.Functions
Containing Type
AssemblyNameFunctions

Syntax

[Function("get-assembly-name")]
public AssemblyName GetAssemblyName(string assemblyFile)

Examples

Output the full name of the nunit.framework assembly to the build log.

<echo message="${assemblyname::get-full-name(assemblyname::get-assembly-name('nunit.framework.dll'))}" />

Remarks

The assembly is not added to this domain.

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 assembly file for which to get the System.Reflection.AssemblyName.

Return Value

Type Description
AssemblyName An System.Reflection.AssemblyName object representing the given file.