title: What is the best way to determine application root directory?
body: <p>I need to get all dlls in my application root directory. What is the best way to do that?</p>
  
  <pre><code>string root = Application.StartupPath;
  </code></pre>
  
  <p>Or,</p>
  
  <pre><code>string root = new FileInfo(Assembly.GetExecutingAssembly().Location).FullName;
  </code></pre>
  
  <p>And after that,</p>
  
  <pre><code>Directory.GetFiles(root, "*.dll");
  </code></pre>
  
  <p>Which way is better? Are there better ways?</p>