Single NuGet Package Containing x86 ARM x64 binaries
nuget, windows-phone, windows-runtime, x86
Solution
As far as I know, this is still unsupported.
This SO question has two answers that should work for you, one for addressing this with a single package, the other a simple multipackage solution:
How should I create or upload a 32-bit and 64-bit NuGet package?
Problem
Is there any way of making a single NuGet package that contains binaries targeting x86 ARM x64 etc. so that VisStudio/MSBuild will pick up the correct binaries for each given build configuration? I can only see support for os target - i.e. Windows, Windows8, win, win8, wp, wp7, WindowsPhone, WindowsPhone7, silverilght4-wp71, wp71, WindowsPhone71 etc. And you end up with a folder structure like this: ``` \content \net11 \MyContent.txt \net20 \MyContent20.txt \net40 \sl40 \MySilverlightContent.html \tools init.ps1 \net40 install.ps1 uninstall.ps1 \sl40 install.ps1 uninstall.ps1 ``` Do I really have to do some powershell-script or pre-build step to accomplish this? It seems like this should be supported by NuGet out-of-the-box? If I do have to use a script - does anyone have good example code? A ps1 script or some sort of build hook? I also found this work item on the subject: http://nuget.codeplex.com/workitem/679. But its been around since June 2011, last commented in July. Any ideas? Many thanks, Jon Sources: - http://docs.nuget.org/docs/release-notes/nuget-2.1 - http://docs.nuget.org/docs/creating-packages/creating-and-publishing-a-package#Framework_Names