title: Visual Studio 2012 Deploying WPF via ClickOnce missing Folder and Files
body: <p>I have a WPF project that I am ready to deploy using Visual Studio 2012 but I'm running into a missing folder issue.</p>
  
  <p>If I Start the project in VS it runs fine and my test button works as expected.</p>
  
  <p>When I Publish the project, the publish succeeds, running setup.exe installs successfully and program starts to main window fine.</p>
  
  <p>Clicking the test button crashes the application.</p>
  
  <p>Line that causes crash:<br>
  <code>string[] reportFileNames = System.IO.Directory.GetFiles("Reports");</code></p>
  
  <blockquote>
    <p>"Could not find a part of the path 'C:\Users\dirt\AppData\Local\Apps\2.0\GEDD6PQW.N72\8M9ONPGG.TVB\prof..tion_40c30‌​d08e677b188_0001.0000_9a5540d4bfbe5aff\ <strong>Reports'.</strong>"</p>
  </blockquote>
  
  <p>Confirmed Exists:<br>
  <code>C:\MyProject\bin\MyMode\Reports\</code><br>
  <code>C:\MyProject\bin\MyMode\Reports\MyReport.rdlc</code></p>
  
  <p>Confirmed Does Not Exist: <code>C:\Users\dirt\AppData\Local\Apps\2.0\GEDD6PQW.N72\8M9ONPGG.TVB\prof..tion_40c30‌​d08e677b188_0001.0000_9a5540d4bfbe5aff\Reports\</code></p>
  
  <p>The Reports\MyReport.rdlc files have a Build Action of <code>Resource</code> and Copy to Output Directory of <code>Copy always</code>.</p>
  
  <p>What am I missing?</p>