davidfowl/NuGetPowerTools — Issue #17: Enable-PackageBuild only works on projects with an 'Any CPU' platform
Author: scottt732
Created: 2011-12-08 22:00:11+00:00
State: open

I'm trying to make some packages for libraries that DllImport 32-bit libraries and is x86-only. Typically, I create a new platform configuration for x86 derived from Any CPU and then delete the Any CPU configuration.

When I do this, the nuget packaging fails with "Unable to find 'blah.dll'. Make sure the project has been built.". The project did build & the dll is where you'd expect it, but the packaging fails.

The workaround is to add an Any CPU platform back and switch the active configuration back to x86. Rebuilds now with the proper x86 dll's. The problem with the workaround is that I don't want another Dev to see the Any CPU configuration and assume that it can work on a 64-bit machine--it can't.