NUGET & Target CPU

Topics: General
Oct 24, 2012 at 9:39 PM

How do I specify target a CPU?


Looking for some like:








Oct 24, 2012 at 9:41 PM
Edited Oct 24, 2012 at 9:43 PM

NuGet doesn't support CPU architecture, although we have seen people request for this feature. Can you describe why you have different assemblies for x86 and x64 for managed assemblies?

Oct 24, 2012 at 10:06 PM

You can build and target [Any CPU] but there is not guarantee that it will work, and can screw-up deployments. So by publishing both x86 and x64 you support everyone.

x86 will run on 64bit OS but x64 will not run on 32bit OS.

Also if you reference legacy COM inside you managed code you may be forced to build as 32bit/x86 even though your app runs on a 64bit OS, and you could not use my published [Any CPU] version, you would need an x86.

Also if my customer was targeting x64, he would not be able to use my x86 or [Any CPU] published items.



Jan 28, 2015 at 4:29 PM
Has there been any more discussion or resolution on this issue? I have noticed there is an open issue but it's still in a "Proposed" status.