We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 8930598 + 42db97c commit f99cb9eCopy full SHA for f99cb9e
src/CommandLine/Text/HeadingInfo.cs
@@ -57,8 +57,16 @@ public static HeadingInfo Default
57
{
58
var title = ReflectionHelper.GetAttribute<AssemblyTitleAttribute>()
59
.MapValueOrDefault(
60
- titleAttribute => Path.GetFileNameWithoutExtension(titleAttribute.Title),
+ titleAttribute =>
61
+ {
62
+ if (titleAttribute.Title.ToLowerInvariant().EndsWith(".dll"))
63
64
+ return titleAttribute.Title.Substring(0, titleAttribute.Title.Length - ".dll".Length);
65
+ }
66
+ return titleAttribute.Title;
67
+ },
68
ReflectionHelper.GetAssemblyName());
69
+
70
var version = ReflectionHelper.GetAttribute<AssemblyInformationalVersionAttribute>()
71
72
versionAttribute => versionAttribute.InformationalVersion,
0 commit comments