FileWatcher for project folder
anyone have better idea how to listen for changes in project folder? i have text file in this folder and i want to listen for changes
string outputDirectory = AppDomain.CurrentDomain.BaseDirectory;
string projectDirectory = Directory.GetParent(outputDirectory).Parent.Parent.Parent.FullName; // Navigate to the project folder
this.watcher = new FileSystemWatcher();
this.watcher.Path = projectDirectory;