title: c# built-in function to get path of bin folder and not the application folder such as bin\Debug or bin\Release
body: <p>We can get path of an application directory as follows. But this gives us the <code>...\bin\Debug</code> or <code>...\bin\Release</code> based on debug of release mode of the app. Question: How can we get the path of <code>bin</code> folder <strong>WITHOUT</strong> doing string manipulation - i.e. is there a built-in function for it?</p>
  
  <pre><code>string path = AppDomain.CurrentDomain.BaseDirectory;
  </code></pre>