title: How to move third party dlls from bin folder to another folder in ASP.NET Web Forms project?
body: <p>There are some third party dlls in Bin folder. I would like to move them to root/lib path. I think, it is not enough move the files to lib folder. How can i do this, safely? These are dlls;</p>
  
  <ul>
  <li>Microsoft.Web.Infrastructure.dll</li>
  <li>Newtonsoft.Json.dll</li>
  <li>NReco.PdfGenerator</li>
  <li>System.Web.Optimization.dll</li>
  <li>WebGrease.dll</li>
  </ul>
  
  <p><strong>Update:</strong> I followed <a href="https://stackoverflow.com/questions/1996358/how-to-move-all-referenced-dlls-into-seperate-folder-in-c][1]">these instructions</a> and i got an error like; <em>The type or namespace name 'Optimization' does not exist in the namespace 'System.Web'</em></p>
  
  <p>The error occurred on this line: <code>using System.Web.Optimization;</code> </p>
  
  <p>I created a new lib folder on root directory, moved System.Web.Optimization.dll file to lib. Then, i edited my web.config as below;</p>
  
  <pre><code>    &lt;runtime&gt;
  &lt;assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1"&gt;
    &lt;dependentAssembly&gt;
      &lt;assemblyIdentity name="WebGrease" publicKeyToken="31bf3856ad364e35" culture="neutral" /&gt;
      &lt;bindingRedirect oldVersion="0.0.0.0-1.5.2.14234" newVersion="1.5.2.14234" /&gt;
    &lt;/dependentAssembly&gt;
    &lt;probing privatePath="bin;lib"/&gt;
  &lt;/assemblyBinding&gt;
  </code></pre>
  
  <p></p>