title: How to package a multi-architecture .NET library that targets the Universal Windows Platform?
body: <p>How do I package a Universal Windows Platform library written in C# that offers only architecture-dependent builds? For the sake of illustration, let's say that I have some architecture-specific code conditionally compiled in for each architecture (using <code>#if ARM</code> and equivalents).</p>
  
  <p>To be clear, no AnyCPU build exists for my library - only x86, x64 and ARM.</p>
  
  <p>An equivalent and potentially more common situation is one where I have a dependency on an external library that is only provided as architecture-specific builds (e.g. <a href="https://github.com/Microsoft/Win2D" rel="noreferrer">Win2D</a>). To keep the context simple, let's assume there are no dependencies and only my own code is involved - the solution should reduce to the same thing either way.</p>
  
  <blockquote>
    <p>This is a series of questions and answers that document my findings on the topic of modern NuGet package authoring, focusing especially on the changes introduced with NuGet 3. You may also be interested in some related questions:</p>
    
    <ul>
    <li><a href="https://stackoverflow.com/questions/34611829/how-to-package-a-net-framework-library">How to package a .NET Framework library?</a></li>
    <li><a href="https://stackoverflow.com/questions/34611882/how-to-package-a-net-library-targeting-the-universal-windows-platform">How to package a .NET library targeting the Universal Windows Platform?</a></li>
    <li><a href="https://stackoverflow.com/questions/34611919/how-to-package-a-portable-net-library-targeting-net-core">How to package a portable .NET library targeting .NET Core?</a></li>
    <li><a href="https://stackoverflow.com/questions/34611968/how-to-package-a-net-library-targeting-net-framework-and-universal-windows-pla">How to package a .NET library targeting .NET Framework and Universal Windows Platform and include platform-specific functionality?</a></li>
    <li><a href="https://stackoverflow.com/questions/34612015/how-to-package-a-net-library-that-targets-the-universal-windows-platform-and-de">How to package a .NET library that targets the Universal Windows Platform and depends on Visual Studio extension SDKs?</a></li>
    </ul>
  </blockquote>