@@ -30,7 +30,7 @@ public static void AreAttributesValid([NotNull] Assembly assembly)
3030 string . Format (
3131 "Missing the {0} attribute in the {1} assembly." ,
3232 GetAttributeName < AssemblyCopyrightAttribute > ( ) ,
33- Path . GetFileName ( typeof ( Version ) . Assembly . Location ) ) ) ;
33+ Path . GetFileName ( assembly . Location ) ) ) ;
3434 }
3535
3636 if ( copyrightAttribute . Copyright == null )
@@ -40,7 +40,7 @@ public static void AreAttributesValid([NotNull] Assembly assembly)
4040 "The '{0}' property of the {1} attribute in the {2} assembly is null." ,
4141 nameof ( AssemblyCopyrightAttribute . Copyright ) ,
4242 GetAttributeName < AssemblyCopyrightAttribute > ( ) ,
43- Path . GetFileName ( typeof ( Version ) . Assembly . Location ) ) ) ;
43+ Path . GetFileName ( assembly . Location ) ) ) ;
4444 }
4545
4646 if ( copyrightAttribute . Copyright . IndexOf ( DateTime . Today . Year . ToString ( ) , StringComparison . CurrentCultureIgnoreCase ) == - 1 )
@@ -50,7 +50,7 @@ public static void AreAttributesValid([NotNull] Assembly assembly)
5050 "The '{0}' property of the {1} attribute in the {2} assembly does not contain the current year." ,
5151 nameof ( AssemblyCopyrightAttribute . Copyright ) ,
5252 GetAttributeName < AssemblyCopyrightAttribute > ( ) ,
53- Path . GetFileName ( typeof ( Version ) . Assembly . Location ) ) ) ;
53+ Path . GetFileName ( assembly . Location ) ) ) ;
5454 }
5555 }
5656 }
0 commit comments