title: Get Application File Path in Windows Forms Application
body: <p>I have a simple windows form app that I need to get the file path for. I am placing a config file in the same directory and I need to be able to get the path to that file.</p>
  
  <p>I have used 
  <code>Application.CommonAppDataPath</code>
  but that returns the path with 1.0.0.0 at the end.</p>
  
  <p>and 
  <code>Applicaiton.StartupPath</code>
  but that returns the path with \bin\debug at the end</p>
  
  <p>Is there anyway to get the path to just the main file directory without anything appended to the end?</p>