In .NET 8, the FileSystemWatcher.cs functionality seems to be malfunctioning. To address this issue, I've developed a custom solution packaged as 'Custom.Net8.FileSystemWatcher'.It offers functionality akin to FileSystemWatcher.
I can guide you on how you might structure such a custom implementation.
Step 1. Set Up Your Project. I have used the WPF project for it.
Step 2. Add a Necessary NuGet Package like the one below.
![NuGet Package]()
Step 3. Implement View for handling different requests like below.
![Window]()
Step 4. Implement CustomFileSystemWatcher like below
Step 5. Result of some actions
The action has resulted in the creation of a file.
![File Created]()
The action has resulted in the modification of a file.
![Modifiaction]()
The action has resulted in the renaming of a file.
![Action]()
Notes. Implement additional logic as needed inside the event handlers of the CustomWatcher implementation.
Repository Path: https://github.com/OmatrixTech/WpfAppTester