File tree Expand file tree Collapse file tree 2 files changed +7
-1
lines changed
tests/Magick.NET.Tests/MagickNETTests
tools/Magick.NET.SourceGenerator/AssemblyInfo Expand file tree Collapse file tree 2 files changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -45,5 +45,11 @@ public void ShouldContainTheCorrectFramework()
4545 Assert . Contains ( "net8.0" , MagickNET . Version ) ;
4646#endif
4747 }
48+
49+ [ Fact ]
50+ public void ShouldContainTheCorrectVersion ( )
51+ {
52+ Assert . Contains ( "14.8.1" , MagickNET . Version ) ;
53+ }
4854 }
4955}
Original file line number Diff line number Diff line change @@ -29,7 +29,7 @@ private string GetVersion(GeneratorAttributeSyntaxContext context)
2929 . ConstructorArguments . FirstOrDefault ( ) . Value ? . ToString ( ) ;
3030
3131 var version = assemblyAttributes
32- . Single ( attribute => attribute . AttributeClass ? . ToDisplayString ( ) == typeof ( AssemblyVersionAttribute ) . FullName )
32+ . Single ( attribute => attribute . AttributeClass ? . ToDisplayString ( ) == typeof ( AssemblyFileVersionAttribute ) . FullName )
3333 . ConstructorArguments . FirstOrDefault ( ) . Value ? . ToString ( ) ;
3434
3535 if ( title is null || version is null )
You can’t perform that action at this time.
0 commit comments