Skip to content

Commit 8b301bc

Browse files
committed
release nuget v1.3
1 parent d8a576c commit 8b301bc

File tree

6 files changed

+14
-13
lines changed

6 files changed

+14
-13
lines changed

Nuget/Build/FileWatcherEx.1.3.0.nupkg

10.1 KB
Binary file not shown.

Nuget/FileWatcherEx.nuspec

+2-3
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,10 @@
77
<authors>Duong Dieu Phap</authors>
88
<owners>Duong Dieu Phap</owners>
99
<description>
10-
A wrapper of C# FileSystemWatcher for Windows, used in ImageGlass project (https://imageglass.org).
11-
This project is based on the VSCode FileWatcher: https://github.com/Microsoft/vscode-filewatcher-windows.
10+
A wrapper of C# FileSystemWatcher for Windows, used in ImageGlass project (https://imageglass.org). This project is based on the VSCode FileWatcher: https://github.com/Microsoft/vscode-filewatcher-windows.
1211
</description>
1312
<releaseNotes>
14-
- Add support for SynchronizingObject property (Cross-thread operation)
13+
- Fixed: Error reading the C:\Users\User\Application Data directory
1514
</releaseNotes>
1615
<summary>
1716
Features: Standardize the events of C# FileSystemWatcher. No false change notifications when a file system item is created, deleted, changed or renamed.

Nuget/build.bat

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
nuget.exe pack "FileWatcherEx.nuspec" -NoPackageAnalysis -verbosity detailed -o Build -Version 1.2.0.0
1+
nuget.exe pack "FileWatcherEx.nuspec" -NoPackageAnalysis -verbosity detailed -o Build -Version 1.3.0.0
22

33
pause

Source/FileWatcherEx/FileWatcher.cs

+4-2
Original file line numberDiff line numberDiff line change
@@ -67,14 +67,16 @@ public FileSystemWatcher Create(string path, Action<FileChangedEvent> onEvent, A
6767
{
6868
FileAttributes fileAttributes = File.GetAttributes(directoryInfo.FullName);
6969

70-
// TODO consider skipping hidden/system folders? See IG Issue #405 comment below
70+
// TODO: consider skipping hidden/system folders?
71+
// See IG Issue #405 comment below
72+
// https://github.com/d2phap/ImageGlass/issues/405
7173
if (fileAttributes.HasFlag(FileAttributes.Directory) && fileAttributes.HasFlag(FileAttributes.ReparsePoint))
7274
{
7375
try
7476
{
7577
this.MakeWatcher(directoryInfo.FullName);
7678
}
77-
catch (Exception ex)
79+
catch (Exception)
7880
{
7981
// IG Issue #405: throws exception on Windows 10 for "c:\users\user\application data" folder and sub-folders.
8082
}

Source/FileWatcherEx/FileWatcherEx.cs

+5-5
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ public void Start()
9494
{
9595
if (!Directory.Exists(this.FolderPath)) return;
9696

97-
97+
9898

9999

100100
_processor = new EventProcessor((e) =>
@@ -117,7 +117,7 @@ void InvokeChangedEvent(object sender, FileChangedEvent fileEvent)
117117
}
118118
}
119119

120-
120+
121121
break;
122122

123123
case ChangeType.CREATED:
@@ -136,11 +136,11 @@ void InvokeCreatedEvent(object sender, FileChangedEvent fileEvent)
136136
}
137137
}
138138

139-
139+
140140
break;
141141

142142
case ChangeType.DELETED:
143-
143+
144144
InvokeDeletedEvent(this.SynchronizingObject, e);
145145

146146
void InvokeDeletedEvent(object sender, FileChangedEvent fileEvent)
@@ -233,7 +233,7 @@ void onError(ErrorEventArgs e)
233233
// Start watching
234234
this._fsw.EnableRaisingEvents = true;
235235
}
236-
236+
237237

238238

239239
/// <summary>

Source/FileWatcherEx/Properties/AssemblyInfo.cs

+2-2
Original file line numberDiff line numberDiff line change
@@ -32,5 +32,5 @@
3232
// You can specify all the values or you can default the Build and Revision Numbers
3333
// by using the '*' as shown below:
3434
// [assembly: AssemblyVersion("1.0.*")]
35-
[assembly: AssemblyVersion("1.2.0.0")]
36-
[assembly: AssemblyFileVersion("1.2.0.0")]
35+
[assembly: AssemblyVersion("1.3.0.0")]
36+
[assembly: AssemblyFileVersion("1.3.0.0")]

0 commit comments

Comments
 (0)