File tree Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change 1111 </PropertyGroup >
1212
1313 <PropertyGroup >
14- <Version >1.0 .0</Version >
14+ <Version >1.1 .0</Version >
1515 <Authors >mx7b7</Authors >
1616 <Company >mx7b7</Company >
1717 <Product >CodeSnip</Product >
Original file line number Diff line number Diff line change @@ -54,7 +54,8 @@ public AboutWindowModel()
5454 Title = assembly . GetCustomAttribute < AssemblyTitleAttribute > ( ) ? . Title ?? "Unknown" ;
5555 Description = assembly . GetCustomAttribute < AssemblyDescriptionAttribute > ( ) ? . Description ?? string . Empty ;
5656 Company = assembly . GetCustomAttribute < AssemblyCompanyAttribute > ( ) ? . Company ?? string . Empty ;
57- Version = assembly . GetName ( ) . Version ? . ToString ( ) ?? "1.0.0" ;
57+ var version = assembly . GetName ( ) . Version ;
58+ Version = version != null ? $ "{ version . Major } .{ version . Minor } .{ version . Build } " : "1.0.0" ;
5859 Copyright = assembly . GetCustomAttribute < AssemblyCopyrightAttribute > ( ) ? . Copyright ?? string . Empty ;
5960 }
6061 }
You can’t perform that action at this time.
0 commit comments