File tree 1 file changed +11
-12
lines changed
1 file changed +11
-12
lines changed Original file line number Diff line number Diff line change @@ -55,19 +55,18 @@ public static HeadingInfo Default
55
55
{
56
56
get
57
57
{
58
- string title = ReflectionHelper . GetAssemblyName ( ) ;
59
- #if NETSTANDARD1_5
60
- title = ReflectionHelper . GetAttribute < AssemblyTitleAttribute > ( )
58
+ var title = ReflectionHelper . GetAttribute < AssemblyTitleAttribute > ( )
61
59
. MapValueOrDefault (
62
- titleAttribute => Path . GetFileNameWithoutExtension ( titleAttribute . Title ) ,
63
- title ) ;
64
- #else
65
- title = ReflectionHelper . GetAttribute < AssemblyTitleAttribute > ( )
66
- . MapValueOrDefault (
67
- titleAttribute => titleAttribute . Title ,
68
- title ) ;
69
- #endif
70
-
60
+ 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
+
71
70
var version = ReflectionHelper . GetAttribute < AssemblyInformationalVersionAttribute > ( )
72
71
. MapValueOrDefault (
73
72
versionAttribute => versionAttribute . InformationalVersion ,
You can’t perform that action at this time.
0 commit comments