title: How to set XAudio2 dll version
body: <p>My MSVC 2015 C++ application project uses <code>xaudio2.lib</code>. So the .cvxproj contains a line</p>
  
  <pre><code>&lt;AdditionalDependencies&gt;xaudio2.lib;%(AdditionalDependencies)&lt;/AdditionalDependencies&gt;
  </code></pre>
  
  <p>Looking into .exe built, I can find a line <code>XAudio2_8.dll</code>.</p>
  
  <p>So it seems that the compiler (or the linker) has decided to use just 2_8 version.</p>
  
  <p>It leads to a problem that my app cannot be run on Windows 7 machine, because only lower versions of <code>XAudio2.dll</code> are installed there, and it cannot find <code>XAudio2_8.dll</code>.</p>
  
  <p>So how can I fix/modify my project so that the resulting .exe can be run on Windows 7? How can I specify to use <code>XAudio2_7.dll</code>, for instance?</p>