ServiceStack's new support for Razor v2 uses a FileSystemWatcher
to detect changes to tracked view files and mark them as invalid so they'll be recompiled at the next request.
This is great for debugging as it lets you edit your views and not rebuild/restart your project.
On Mono (currently running 3.0.10) on my Mac OS X (Mountain Lion) there is apparently a Mono bug where the FileSystemWatcher
doesn't raise Changed
events for file changes. Furthermore, it also doesn't raise any events for files in a subdirectory, even if IncludeSubdirectories
is set to true.