Reputation: 48476
Before I build, I choose x86 (or Any CPU, too) in the Properties tab for the project.
I save these properties, and if I re-open the Properties tab it's back to x64 as the platform and target, why?
Upvotes: 0
Views: 92
Reputation: 244682
Choosing a build configuration in Properties doesn't actually change the active build configuration. It only allows you to switch between the various build configurations that are defined for your project so that you can edit the settings for each of those configurations. It's only a configuration selector.
The easiest way to change the active build configuration is using the drop-down boxes on the toolbar:
Those commands should be present in your toolbar by default. If you don't see them, follow these steps to get them back where they belong.
Upvotes: 1
Reputation: 887195
Make sure that your .csproj
file is not readonly.
Make sure that your changing the build target, not the configuration selector.
Upvotes: 1