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.0.0+bb7ed9a8fdfd1cb21824750a8cf508863ad15086
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