title: How to get folder path for ClickOnce application
body: <p>I need to write a file in the same folder where a console ClickOnce <code>.application</code> (executable file) resides. The folder where it launches from.</p>
  
  <p>I tried using <code>Application.StartupPath</code> &amp; <code>Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location)</code>
  but the path is pointing to a subfolder under <code>c:\Documents &amp; Settings</code>. How do I get the path where the <code>.application</code> resides in?</p>