Does .NET FileSystemWatcher work with Mono on Mac

2019-04-08 23:43发布

问题:

Can I write a Microsoft .NET programm with a FileSystemWatcher and expect it to work under Mac OS X with Mono without changes?

回答1:

Yes, it will work without changes. Mono includes a FileSystemWatcher for all platforms.

Keep in mind that your code might want to use Path.PathSeperator to be more compatible with the different ways directory names are formatted on different platforms.



回答2:

As of November 2011, it exists and works for some uses, but not all.

For example, LastWrite and Size dont seem to work on OSX.



标签: c# .net macos mono