NAnt SDK Documentation - v0.92

AssemblyNameFunctions.GetName Method 

Gets the simple, unencrypted name of the assembly.

[Visual Basic]
<Function(Name:="get-name")>
Public Shared Function GetName( _
   ByVal assemblyName As AssemblyName _
) As String
[C#]
[Function(Name="get-name")]
public static string GetName(
   AssemblyName assemblyName
);

Parameters

assemblyName
The AssemblyName of the assembly.

Return Value

The simple, unencrypted name of the assembly.

Example

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

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

See Also

AssemblyNameFunctions Class | NAnt.Core.Functions Namespace | GetName