title: WinSxS: How to take dependency on specific version of gdiplus.dll?
body: <p>I need to add a dependency on a specific version of GDIPlus. This is the version of GDI+ that i want:</p>
  
  <p><a href="https://i.stack.imgur.com/6xmVP.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/6xmVP.png" alt="alt text"></a>
  </p>
  
  <p>I want to be sure that I'm using this version for a specific compatibility reason.</p>
  
  <p>I've added an assembly manifest to my executable, defining my dependancy on the version of <strong>GdiPlus</strong>:</p>
  
  <pre><code>&lt;dependency&gt;
     &lt;dependentAssembly&gt;
        &lt;assemblyIdentity 
              type="win32" name="Microsoft.Windows.GdiPlus" 
              pubicKeyToken="6595b64144ccf1df" 
              version="5.1.3102.2180" processorArchitecture="x86"
              language="*" /&gt;
     &lt;/dependentAssembly&gt;
  &lt;/dependency&gt;
  </code></pre>
  
  <p>Except when I run my application, Windows' fusion loader gives me some other version of gdiplus.dll from the Side-by-Side folder, which I can see in Process Explorer:</p>
  
  <p><a href="https://i.stack.imgur.com/Hn8ZL.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/Hn8ZL.png" alt="alt text"></a>
  </p>
  
  <p>It's giving me version <strong>5.02.6002.18005</strong>, rather than <strong>5.1.3102.2180</strong>.</p>
  
  <p>So the question is: How do I take a dependency on a specific version of a Windows dll?</p>