In the second half of our chapter, we will create another FileSystemWatcher for you, but this time we'll approach it a bit differently. As with all our other microservices, the first thing we need to do is create our console application. In this instance, we will name it FileSystemMonitorMicroService as follows:
With that being done, and our template project in place, we now need to add the NuGet package, Topshelf.FileSystemWatcher. This is a very simple, yet powerful, library that is specifically designed to monitor filesystem change events on Windows and will save us a lot of work from writing our own.
Here's what it looks like from within NuGet: