Does .NET FileSystemWatcher work with Mono on Mac

2019-04-08 23:35发布

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

标签: c# .net macos mono
2条回答
forever°为你锁心
2楼-- · 2019-04-09 00:23

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.

查看更多
Root(大扎)
3楼-- · 2019-04-09 00:29

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.

查看更多
登录 后发表回答