Platform specific (x86/x64) variants of one and the same package?

Jan 18, 2012 at 9:35 AM
Edited Jan 18, 2012 at 9:36 AM

Good morning,

I was wondering whether NuGet already supports a sort of platform/architecture specific environment? Particularly I am building a .net library that wraps a native .dll via p/invoke but there are two different 'variants' of the underlying, native .dlls (one for x64, one for x86), but the surfacing .net assembly provides the exact same API publicly.

Now I could create two different NuGet packages (one being e.g. something-x64 like e.g. clrzmqclrzmq-x64 does), but this is somewhat cumbersome.

Ideally I'd like to have one package and some sort of filter (like in e.g. .csproj files):


<Reference Include="PlatformSpecificAssembly" Condition="'$(Platform)'=='x86'">
<Reference Include="PlatformSpecificAssembly" Condition="'$(Platform)'=='x64'">


Is something like that already available/doable?


Best regards and thanks,


Jan 18, 2012 at 9:51 AM

You might want to check out this work item:

Jan 18, 2012 at 9:57 AM
TripleEmcoder wrote:

You might want to check out this work item:


Oh, thanks!