SystemInfo AssemblyShortName Method Apache log4net™ SDK Documentation
Gets the short name of the OnlineAssembly.

Namespace: log4net.Util
Assembly: log4net (in log4net.dll) Version: 1.2.15.0 (1.2.15.0)
Syntax

public static string AssemblyShortName(
	Assembly myAssembly
)

Return Value

Type: OnlineString
The short name of the OnlineAssembly.
Remarks

The short name of the assembly is the OnlineFullName without the version, culture, or public key. i.e. it is just the assembly's file name without the extension.

Use this rather than Assembly.GetName().Name because that is not available on the Compact Framework.

Because of a FileIOPermission security demand we cannot do the obvious Assembly.GetName().Name. We are allowed to get the OnlineFullName of the assembly so we start from there and strip out just the assembly name.

See Also