LocalizedStringProviderApplicationNameAndVersion Method

Gets the name and version of the application, used by the automatic version argument and command.

Definition

Namespace: Ookii.CommandLine
Assembly: Ookii.CommandLine (in Ookii.CommandLine.dll) Version: 4.2.0+a4d3631e4dcc0970081ed435288efdebc1325f83
C#
public virtual string ApplicationNameAndVersion(
	Assembly assembly,
	string friendlyName
)

Parameters

assembly  Assembly
The assembly whose version to use.
friendlyName  String
The friendly name of the application; typically the value of the CommandLineParserApplicationFriendlyName property.

Return Value

String
The string.

Remarks

The base implementation uses the AssemblyInformationalVersionAttribute attribute, and will fall back to the assembly version if none is defined.

See Also