0

I'm trying to understand how NuGet selects and references package assets when a project targets a specific CPU architecture (x86 vs x64). My specific questions are:

If my project platform target is x86, will NuGet automatically download and reference a 32-bit build of the package (if the package contains both 32- and 64-bit native binaries)?

If I switch the project to x64 after the package has already been downloaded/restored while the project was targeting x86, will NuGet re-download or re-reference the 64-bit assets automatically, or do I need to take additional steps (restore, clean, update package, manually change references, etc.)?

2
  • What's the actual problem? If you target a new framework things just work. It's not NuGet that downloads and reference packages, it's the build system. It matters whether you're using .NET Framework or .NET Core too (.NET 5 and later are .NET Core versions) as the NuGet functionality is included in the build system. Commented Oct 17 at 7:12
  • learn.microsoft.com/en-us/nuget/create-packages/… Commented Oct 18 at 0:57

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.