File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -13,7 +13,6 @@ namespace Extractor
1313{
1414 class Program
1515 {
16- private const string Version = "2026-03-17" ;
1716 private static bool launchedByExplorer = false ;
1817 private static Options opt ;
1918
@@ -50,7 +49,7 @@ public static int Main(string[] args)
5049
5150 private static void PrintUsage ( )
5251 {
53- Console . WriteLine ( $ "Extractor { Version } \n ") ;
52+ Console . WriteLine ( $ "Extractor { TextUtils . GetVersionString ( ) } \n ") ;
5453 Console . WriteLine ( "Usage:\n extractor path... [options]\n " ) ;
5554 Console . WriteLine ( "Options:" ) ;
5655 opt . OptionSet . WriteOptionDescriptions ( Console . Out ) ;
Original file line number Diff line number Diff line change 11using System ;
22using System . Collections . Generic ;
33using System . Linq ;
4+ using System . Reflection ;
45using System . Text ;
56using System . Text . RegularExpressions ;
67using System . Threading . Tasks ;
@@ -9,6 +10,13 @@ namespace Extractor
910{
1011 public static class TextUtils
1112 {
13+ public static string GetVersionString ( )
14+ {
15+ var version = Assembly . GetExecutingAssembly ( ) . GetName ( ) . Version ;
16+ var versionStr = $ "{ version . Major } -{ version . Minor : 00} -{ version . Build : 00} ";
17+ return versionStr ;
18+ }
19+
1220 /// <summary>
1321 /// Finds quoted path-like strings in a .sii/.sui file.
1422 /// </summary>
You can’t perform that action at this time.
0 commit comments