Visual Studio/MSBuild copy referenced class library's app.config as *.dll.config to bin folder of current project
<p>I have a <strong>class library</strong> that is referenced by many other web application projects. It has many settings in its <code>app.config</code> that I wish to use in all of the referencing web projects. When the class library is built, it copies the <code>app.config</code> to its own <code>bin</code> folder as <code>&lt;assembly.name&gt;.dll.config</code>.</p>
<h2>How do I ensure that <code>&lt;assembly.name&gt;.dll.config</code> is copied to the bin folder of <em>each</em> of my referencing web application projects?</h2>
<ul>
<li>Visual Studio / MSBuild does not seem to do this by default.</li>
<li>Changing <code>Copy to Output Directory</code> or <code>Build Action</code> (in any combination) does not work.</li>
<li>SlowCheetah VS extension appears to do what I want as an unintended side-effect of its config transform process, but I want to do this <em><strong>without</strong></em> any 3rd-party extensions.</li>
</ul>
<hr />
<p><em>As an aside: It's impractical to manually put all of this config in each of the web application projects. I can read the file by looking for <code>&lt;assembly.name&gt;.dll.config</code> in the bin folder, and extract the settings from there. I can already do this, so that's not an issue - I just need to ensure the file is going to be there for reading</em></p>