title: How can I prevent Visual Studio from locking the xml documentation files in the bin directory?
body: <p>My visual studio solution includes a web application and a unit test application. My web application uses log4net. I want to be able to use msbuild from the command-line to build my solution. However, whenever I build the solution from the command-line, I get build errors because it can't copy log4net.xml to the test project's bin directory. </p>
  
  <p>The error message is:</p>
  
  <blockquote>
    <p>"Unable to copy file '\bin\log4net.xml' to 'bin\Debug\log4net.xml'. Access     to the path '\bin\log4net.xml' is denied."</p>
  </blockquote>
  
  <p>It looks like Visual Studio is locking this file, but I can't figure out why it would need to. Is there a way to prevent VS from locking the XML documentation files in a project that it has loaded?</p>