C#C
C#15mo ago
CrosRoad95

FileWatcher for project folder

        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;


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
Was this page helpful?