title: File.WriteAllText() is trying to write to wrong directory
body: <p>I have the following Code</p>
  
  <pre><code>string filePath = @"C:\temp\Test.txt";
  File.WriteAllText(filePath, csvContent);
  </code></pre>
  
  <p>However when I run the console app it throws the following error...</p>
  
  <blockquote>
    <p>Could not find a part of the path
    'C:\Code\ScheduledTextMigration\ScheduledTextMigration\bin\Debug\C\temp\Test.txt'.</p>
  </blockquote>
  
  <p>Why on earth is it trying to write to that directory?</p>