From 826c46dc4dd3a34ed848e76cd89e4f4490f3c06d Mon Sep 17 00:00:00 2001 From: Phap Dieu Duong Date: Wed, 8 Jun 2022 22:27:38 +0800 Subject: [PATCH] update nuget package --- README.md | 4 ++-- Source/FileWatcherEx/FileSystemWatcherEx.cs | 2 +- Source/FileWatcherEx/FileWatcherEx.csproj | 8 +++++--- nuget.ps1 | 2 +- 4 files changed, 9 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index 8e1c19b..f8a1fa4 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,5 @@ # FileWatcherEx for Windows -A wrapper of C# `FileSystemWatcher` for Windows, used in [ImageGlass](https://github.com/d2phap/ImageGlass) project. +A wrapper of `System.IO.FileSystemWatcher` to standardize the events and avoid false change notifications, used in [ImageGlass](https://github.com/d2phap/ImageGlass) project. This project is based on the *VSCode FileWatcher*: https://github.com/Microsoft/vscode-filewatcher-windows @@ -12,7 +12,7 @@ This project is based on the *VSCode FileWatcher*: https://github.com/Microsoft/ - Nuget package: [https://www.nuget.org/packages/FileWatcherEx](https://www.nuget.org/packages/FileWatcherEx/) ## Features -- Standardize the events of C# `FileSystemWatcher`. +- Standardize the events of `System.IO.FileSystemWatcher`. - No false change notifications when a file system item is created, deleted, changed or renamed. - Support .NET 6.0. diff --git a/Source/FileWatcherEx/FileSystemWatcherEx.cs b/Source/FileWatcherEx/FileSystemWatcherEx.cs index 92557cd..0552e5f 100644 --- a/Source/FileWatcherEx/FileSystemWatcherEx.cs +++ b/Source/FileWatcherEx/FileSystemWatcherEx.cs @@ -10,7 +10,7 @@ namespace FileWatcherEx; /// public class FileSystemWatcherEx : IDisposable { - + #region Private Properties private Thread? _thread; diff --git a/Source/FileWatcherEx/FileWatcherEx.csproj b/Source/FileWatcherEx/FileWatcherEx.csproj index 34ab0bd..28cb2ec 100644 --- a/Source/FileWatcherEx/FileWatcherEx.csproj +++ b/Source/FileWatcherEx/FileWatcherEx.csproj @@ -10,13 +10,15 @@ https://github.com/d2phap/FileWatcherEx git filewatcher, filesystemwatcher, io, filesystemevent, monitor, file-watcher, file-monitoring, realtime, file-systems, file-system-events, monitor-file-system, fs, fsevents - A file system watcher, used in ImageGlass project (https://imageglass.org). This project is based on the VSCode FileWatcher: https://github.com/Microsoft/vscode-filewatcher-windows. + A wrapper of FileSystemWatcher to standardize the events and avoid false change notifications, used in ImageGlass project (https://imageglass.org). This project is based on the VSCode FileWatcher: https://github.com/Microsoft/vscode-filewatcher-windows. True $(Version) - 2.0.0 + 2.1.0 MIT - Supports for normalizing RENAMED events and .NET 6.0 + Expose FileSystemWatcher.Filters property in .NET 6 $(Authors) + False + C:\Users\d2pha\Desktop\pk.pfx diff --git a/nuget.ps1 b/nuget.ps1 index 0792037..f05b918 100644 --- a/nuget.ps1 +++ b/nuget.ps1 @@ -1,5 +1,5 @@ -dotnet nuget push "Source\FileWatcherEx\bin\Release\FileWatcherEx.2.0.0.nupkg" --api-key YOUR_GITHUB_PAT --source "github" +dotnet nuget push "Source\FileWatcherEx\bin\Release\FileWatcherEx.2.1.0.nupkg" --api-key YOUR_GITHUB_PAT --source "github" PAUSE \ No newline at end of file