Before you send me links to here, here and maybe here bear with me.
I'd like to write a service that monitors changes of a given set of files and I started with the simplest thing writing console application that monitors directory in order to continue with my POC. However, I got stuck trying to extract the actual changes that were made. (Yes, I managed to handle the event in the FileSystemWatcher
class, but as far as I see the API of the class I am unable to track the actual changes)
Do you know if there is a way to do so? Maybe without so much pain or unnecessary operations.
I am currently using .NET Core 2.0, but any version of .NET Core will do.
EDIT: The files I need to monitor are text based, basically I want to implement git diff
functionality and report the changes.