title: Open files in a directory folder
body: <p><strong>[EDIT]</strong></p>
  
  <p>I try to open a file from a folder in my base directory.</p>
  
  <p>From the solution explorer, there is a folder "Docs" and a pdf file in it (tempPDF.pdf).
  That will corresponds to a folder in my Project Folder. (e.g. Project\Docs) this is in the save level as bin and properties folders.</p>
  
  <pre><code>String assemblyPath = System.IO.Path.GetDirectoryName(System.Reflection.Assembly.GetExecutingAssembly().CodeBase);
  
  Process proc = new Process();
  proc.StartInfo = new ProcessStartInfo()
  {
      FileName = assemblyPath + "\\Docs\\tempPDF.pdf"
  };
  proc.Start();
  </code></pre>
  
  <p>I have already changed the <strong>Build Action</strong> to "Resource" and <strong>Copy to Output Directory</strong> to "Copy Always". Yet, the pdf file is not copies to the bin, nor the file can be specified by the program. I clean, build and rebuild the solution. </p>
  
  <p>Path kept pointing to bin\Debug folder because this is where the executables is located but the files are location at the same level as bin.</p>
  
  <p>I can simply specific my image in XAML by a path like "Images\img.png", and it will find the image relatively.</p>
  
  <p>This is supposed to be a very simple question - open a PDF from a mouse click.</p>
  
  <p><strong>[EDIT - with answer]</strong></p>
  
  <p>Have to change <strong>Build Action</strong> to <em>"Embedded Resource"</em>, NOT <strong>"Resource"</strong> (Resource only copy a empty folder without the files). I don't know why though.</p>