1- #if ! NET6_0
1+ #if ! NET6_0_OR_GREATER
22using Alphaleonis . Win32 . Filesystem ;
33using Directory = Alphaleonis . Win32 . Filesystem . Directory ;
44using File = Alphaleonis . Win32 . Filesystem . File ;
@@ -555,14 +555,14 @@ private static void DoWork(string f, string d, string csv, string csvf, string j
555555 else
556556 {
557557 Log . Debug ( "Loading maps from {Path}" , Path . GetFullPath ( maps ) ) ;
558- var errors = evtx . EventLog . LoadMaps ( Path . GetFullPath ( maps ) ) ;
558+ var errors = EventLog . LoadMaps ( Path . GetFullPath ( maps ) ) ;
559559
560560 if ( errors )
561561 {
562562 return ;
563563 }
564564
565- Log . Information ( "Maps loaded: {Count:N0}" , evtx . EventLog . EventLogMaps . Count ) ;
565+ Log . Information ( "Maps loaded: {Count:N0}" , EventLog . EventLogMaps . Count ) ;
566566 }
567567
568568 _includeIds = new HashSet < int > ( ) ;
@@ -634,7 +634,7 @@ private static void DoWork(string f, string d, string csv, string csvf, string j
634634 Console . WriteLine ( ) ;
635635 }
636636
637- evtx . EventLog . TimeDiscrepancyThreshold = tdt ;
637+ EventLog . TimeDiscrepancyThreshold = tdt ;
638638
639639 if ( f . IsNullOrEmpty ( ) == false )
640640 {
@@ -649,7 +649,7 @@ private static void DoWork(string f, string d, string csv, string csvf, string j
649649 {
650650 //no need for maps
651651 Log . Debug ( "Clearing map collection since no output specified" ) ;
652- evtx . EventLog . EventLogMaps . Clear ( ) ;
652+ EventLog . EventLogMaps . Clear ( ) ;
653653 }
654654
655655 dedupe = false ;
@@ -685,7 +685,7 @@ private static void DoWork(string f, string d, string csv, string csvf, string j
685685 Log . Information ( "Looking for event log files in {D}" , d ) ;
686686 Console . WriteLine ( ) ;
687687
688- #if ! NET6_0
688+ #if ! NET6_0_OR_GREATER
689689
690690 var directoryEnumerationFilters = new DirectoryEnumerationFilters
691691 {
@@ -719,7 +719,7 @@ private static void DoWork(string f, string d, string csv, string csvf, string j
719719 {
720720 //no need for maps
721721 Log . Debug ( "Clearing map collection since no output specified" ) ;
722- evtx . EventLog . EventLogMaps . Clear ( ) ;
722+ EventLog . EventLogMaps . Clear ( ) ;
723723 }
724724
725725 foreach ( var file in files2 )
@@ -804,7 +804,7 @@ private static void DoWork(string f, string d, string csv, string csvf, string j
804804 Directory . Delete ( directory ) ;
805805 }
806806
807- #if ! NET6_0
807+ #if ! NET6_0_OR_GREATER
808808 Directory . Delete ( VssDir , true , true ) ;
809809#else
810810 Directory . Delete ( VssDir , true ) ;
@@ -911,7 +911,7 @@ private static void UpdateFromRepo()
911911
912912 }
913913
914- #if ! NET6_0
914+ #if ! NET6_0_OR_GREATER
915915 File . Copy ( newMap , dest , CopyOptions . None ) ;
916916#else
917917 File . Copy ( newMap , dest , true ) ;
@@ -1035,8 +1035,8 @@ private static void ProcessFile(string file, bool dedupe, bool fj, bool met)
10351035 SeenHashes . Add ( sha ) ;
10361036 }
10371037
1038- evtx . EventLog . LastSeenTicks = 0 ;
1039- var evt = new evtx . EventLog ( fileS ) ;
1038+ EventLog . LastSeenTicks = 0 ;
1039+ var evt = new EventLog ( fileS ) ;
10401040
10411041 Log . Information ( "Chunk count: {ChunkCount:N0}, Iterating records..." , evt . ChunkCount ) ;
10421042
0 commit comments