NAnt SDK Documentation - v0.85-nightly-2005-11-09

AssemblyNameFunctions.GetName Method 

[This is preliminary documentation and subject to change.]

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.

Remarks

Missing <remarks> documentation for M:NAnt.Core.Functions.AssemblyNameFunctions.GetName(System.Reflection.AssemblyName)

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