title: Why doesn't FileSystemWatcher detect changes from Visual Studio?
body: <p>I have made a tiny application that responds to changes to files in a folder. But when I edit the file in Visual Studio 2008, it never detects anything. If I edit the file in Notepad instead, everything works as expected.</p>
  
  <p>Surely Visual Studio saves the file at some point, but the watcher does not even trigger when I close the studio. Do you have any idea what I'm missing here?</p>
  
  <p>This sample code (C#) should illustrate the problem:</p>
  
  <pre><code>FileSystemWatcher fileSystemWatcher = new FileSystemWatcher("C:\Test", "*.cs");
  WaitForChangedResult changed = fileSystemWatcher.WaitForChanged(WatcherChangeTypes.All);
  Console.Out.WriteLine(changed.Name);
  </code></pre>
  
  <p>I found a <a href="http://ayende.com/Blog/archive/2006/02/20/FileSystemWatcherVisualStudio2005.aspx" rel="noreferrer">blog post by Ayende</a> that describes the same problem, but unfortunately no solution.</p>