Skip to content

Commit fb35b79

Browse files
VLADVLAD
authored andcommitted
Version for VS2017 and .NET 4.7.2 users
1 parent 39af851 commit fb35b79

10 files changed

+36
-33
lines changed

FastSearchLibrary/DirectorySearcher/DirectoryCancellationDelegateSearcher.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ protected override void GetDirectories(string folder)
3737
{
3838
return;
3939
}
40-
catch (PathTooLongException ex)
40+
catch (DirectoryNotFoundException ex)
4141
{
4242
return;
4343
}
@@ -69,7 +69,7 @@ protected override void GetDirectories(string folder)
6969
catch (UnauthorizedAccessException ex)
7070
{
7171
}
72-
catch (PathTooLongException ex)
72+
catch (DirectoryNotFoundException ex)
7373
{
7474
}
7575
}
@@ -110,7 +110,7 @@ protected override List<DirectoryInfo> GetStartDirectories(string folder)
110110
{
111111
return new List<DirectoryInfo>();
112112
}
113-
catch (PathTooLongException ex)
113+
catch (DirectoryNotFoundException ex)
114114
{
115115
return new List<DirectoryInfo>();
116116
}

FastSearchLibrary/DirectorySearcher/DirectoryCancellationPatternSearcher.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ protected override void GetDirectories(string folder)
3838
{
3939
return;
4040
}
41-
catch (PathTooLongException ex)
41+
catch (DirectoryNotFoundException ex)
4242
{
4343
return;
4444
}
@@ -64,7 +64,7 @@ protected override void GetDirectories(string folder)
6464
catch (UnauthorizedAccessException ex)
6565
{
6666
}
67-
catch (PathTooLongException ex)
67+
catch (DirectoryNotFoundException ex)
6868
{
6969
}
7070
}
@@ -100,7 +100,7 @@ protected override List<DirectoryInfo> GetStartDirectories(string folder)
100100
{
101101
return new List<DirectoryInfo>();
102102
}
103-
catch (PathTooLongException ex)
103+
catch (DirectoryNotFoundException ex)
104104
{
105105
return new List<DirectoryInfo>();
106106
}

FastSearchLibrary/DirectorySearcher/DirectorySearcher.cs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -455,7 +455,7 @@ static private void GetDirectories(string folder, List<DirectoryInfo> result, st
455455
{
456456
return;
457457
}
458-
catch (PathTooLongException ex)
458+
catch (DirectoryNotFoundException ex)
459459
{
460460
return;
461461
}
@@ -469,7 +469,7 @@ static private void GetDirectories(string folder, List<DirectoryInfo> result, st
469469
catch (UnauthorizedAccessException ex)
470470
{
471471
}
472-
catch (PathTooLongException ex)
472+
catch (DirectoryNotFoundException ex)
473473
{
474474
}
475475
}
@@ -492,7 +492,7 @@ static private void GetDirectories(string folder, List<DirectoryInfo> result, Fu
492492
{
493493
return;
494494
}
495-
catch (PathTooLongException ex)
495+
catch (DirectoryNotFoundException ex)
496496
{
497497
return;
498498
}
@@ -510,7 +510,7 @@ static private void GetDirectories(string folder, List<DirectoryInfo> result, Fu
510510
catch (UnauthorizedAccessException ex)
511511
{
512512
}
513-
catch (PathTooLongException ex)
513+
catch (DirectoryNotFoundException ex)
514514
{
515515
}
516516
}
@@ -540,7 +540,7 @@ static private List<DirectoryInfo> GetStartDirectories(string folder, Concurrent
540540
{
541541
return new List<DirectoryInfo>();
542542
}
543-
catch (PathTooLongException ex)
543+
catch (DirectoryNotFoundException ex)
544544
{
545545
return new List<DirectoryInfo>();
546546
}
@@ -581,7 +581,7 @@ static private List<DirectoryInfo> GetStartDirectories(string folder, Concurrent
581581
{
582582
return new List<DirectoryInfo>();
583583
}
584-
catch (PathTooLongException ex)
584+
catch (DirectoryNotFoundException ex)
585585
{
586586
return new List<DirectoryInfo>();
587587
}

FastSearchLibrary/FastSearchLibrary.csproj

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,9 @@
99
<AppDesignerFolder>Properties</AppDesignerFolder>
1010
<RootNamespace>FastSearchLibrary</RootNamespace>
1111
<AssemblyName>FastSearchLibrary</AssemblyName>
12-
<TargetFrameworkVersion>v4.5.1</TargetFrameworkVersion>
12+
<TargetFrameworkVersion>v4.7.2</TargetFrameworkVersion>
1313
<FileAlignment>512</FileAlignment>
14+
<TargetFrameworkProfile />
1415
</PropertyGroup>
1516
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
1617
<DebugSymbols>true</DebugSymbols>
@@ -30,6 +31,7 @@
3031
<ErrorReport>prompt</ErrorReport>
3132
<WarningLevel>4</WarningLevel>
3233
</PropertyGroup>
34+
<PropertyGroup />
3335
<ItemGroup>
3436
<Reference Include="System" />
3537
<Reference Include="System.Core" />

FastSearchLibrary/FileSearcher/FileCancellationDelegateSearcher.cs

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -50,11 +50,12 @@ protected override void GetFiles(string folder)
5050
{
5151
return;
5252
}
53-
catch (PathTooLongException ex)
53+
catch (DirectoryNotFoundException ex)
5454
{
5555
return;
5656
}
5757

58+
5859
foreach (var d in directories)
5960
{
6061
token.ThrowIfCancellationRequested();
@@ -78,7 +79,7 @@ protected override void GetFiles(string folder)
7879
catch (UnauthorizedAccessException ex)
7980
{
8081
}
81-
catch (PathTooLongException ex)
82+
catch (DirectoryNotFoundException ex)
8283
{
8384
}
8485

@@ -119,7 +120,7 @@ protected override List<DirectoryInfo> GetStartDirectories(string folder)
119120
{
120121
return new List<DirectoryInfo>();
121122
}
122-
catch (PathTooLongException ex)
123+
catch (DirectoryNotFoundException ex)
123124
{
124125
return new List<DirectoryInfo>();
125126
}

FastSearchLibrary/FileSearcher/FileCancellationPatternSearcher.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ protected override void GetFiles(string folder)
4444
{
4545
return;
4646
}
47-
catch (PathTooLongException ex)
47+
catch (DirectoryNotFoundException ex)
4848
{
4949
return;
5050
}
@@ -67,7 +67,7 @@ protected override void GetFiles(string folder)
6767
catch (UnauthorizedAccessException ex)
6868
{
6969
}
70-
catch (PathTooLongException ex)
70+
catch (DirectoryNotFoundException ex)
7171
{
7272
}
7373
}
@@ -99,7 +99,7 @@ protected override List<DirectoryInfo> GetStartDirectories(string folder)
9999
{
100100
return new List<DirectoryInfo>();
101101
}
102-
catch (PathTooLongException ex)
102+
catch (DirectoryNotFoundException ex)
103103
{
104104
return new List<DirectoryInfo>();
105105
}

FastSearchLibrary/FileSearcher/FileDelegateSearcher.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ protected override void GetFiles(string folder)
6868
{
6969
return;
7070
}
71-
catch (PathTooLongException ex)
71+
catch (DirectoryNotFoundException ex)
7272
{
7373
return;
7474
}
@@ -92,7 +92,7 @@ protected override void GetFiles(string folder)
9292
catch (UnauthorizedAccessException ex)
9393
{
9494
}
95-
catch (PathTooLongException ex)
95+
catch (DirectoryNotFoundException ex)
9696
{
9797
}
9898

@@ -130,7 +130,7 @@ protected override List<DirectoryInfo> GetStartDirectories(string folder)
130130
{
131131
return new List<DirectoryInfo>();
132132
}
133-
catch (PathTooLongException ex)
133+
catch (DirectoryNotFoundException ex)
134134
{
135135
return new List<DirectoryInfo>();
136136
}

FastSearchLibrary/FileSearcher/FilePatternSearcher.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ protected override void GetFiles(string folder)
6363
{
6464
return;
6565
}
66-
catch (PathTooLongException ex)
66+
catch (DirectoryNotFoundException ex)
6767
{
6868
return;
6969
}
@@ -82,7 +82,7 @@ protected override void GetFiles(string folder)
8282
catch (UnauthorizedAccessException ex)
8383
{
8484
}
85-
catch (PathTooLongException ex)
85+
catch (DirectoryNotFoundException ex)
8686
{
8787
}
8888
}
@@ -112,7 +112,7 @@ protected override List<DirectoryInfo> GetStartDirectories(string folder)
112112
{
113113
return new List<DirectoryInfo>();
114114
}
115-
catch (PathTooLongException ex)
115+
catch (DirectoryNotFoundException ex)
116116
{
117117
return new List<DirectoryInfo>();
118118
}

FastSearchLibrary/FileSearcher/FileSearcher.cs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -378,7 +378,7 @@ static public List<FileInfo> GetFiles(string folder, string pattern = "*")
378378
{
379379
return new List<FileInfo>();
380380
}
381-
catch (PathTooLongException ex)
381+
catch (DirectoryNotFoundException ex)
382382
{
383383
return new List<FileInfo>();
384384
}
@@ -397,7 +397,7 @@ static public List<FileInfo> GetFiles(string folder, string pattern = "*")
397397
catch (UnauthorizedAccessException ex)
398398
{
399399
}
400-
catch (PathTooLongException ex)
400+
catch (DirectoryNotFoundException ex)
401401
{
402402
}
403403

@@ -440,7 +440,7 @@ static public List<FileInfo> GetFiles(string folder, Func<FileInfo, bool> isVali
440440
{
441441
return new List<FileInfo>();
442442
}
443-
catch (PathTooLongException ex)
443+
catch (DirectoryNotFoundException ex)
444444
{
445445
return new List<FileInfo>();
446446
}
@@ -461,7 +461,7 @@ static public List<FileInfo> GetFiles(string folder, Func<FileInfo, bool> isVali
461461
catch (UnauthorizedAccessException ex)
462462
{
463463
}
464-
catch (PathTooLongException ex)
464+
catch (DirectoryNotFoundException ex)
465465
{
466466
}
467467

@@ -620,7 +620,7 @@ static private List<DirectoryInfo> GetStartDirectories(string folder, Concurrent
620620
{
621621
return new List<DirectoryInfo>();
622622
}
623-
catch (PathTooLongException ex)
623+
catch (DirectoryNotFoundException ex)
624624
{
625625
return new List<DirectoryInfo>();
626626
}
@@ -656,7 +656,7 @@ static private List<DirectoryInfo> GetStartDirectories(string folder, Concurrent
656656
{
657657
return new List<DirectoryInfo>();
658658
}
659-
catch (PathTooLongException ex)
659+
catch (DirectoryNotFoundException ex)
660660
{
661661
return new List<DirectoryInfo>();
662662
}

FastSearchLibrary/Properties/AssemblyInfo.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,5 +31,5 @@
3131
// You can specify all the values or you can default the Build and Revision Numbers
3232
// by using the '*' as shown below:
3333
// [assembly: AssemblyVersion("1.0.*")]
34-
[assembly: AssemblyVersion("1.1.6.1")]
35-
[assembly: AssemblyFileVersion("1.1.6.1")]
34+
[assembly: AssemblyVersion("1.1.7.0")]
35+
[assembly: AssemblyFileVersion("1.1.7.0")]

0 commit comments

Comments
 (0)