开发者

Why does VS force my build to x64?

开发者 https://www.devze.com 2023-03-03 22:45 出处:网络
Before I build, I choose x86 (or Any CPU, to开发者_如何学Goo) in the Properties tab for the project.

Before I build, I choose x86 (or Any CPU, to开发者_如何学Goo) 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?


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:

     

Why does VS force my build to x64?

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.


Make sure that your .csproj file is not readonly.

Make sure that your changing the build target, not the configuration selector.

0

精彩评论

暂无评论...
验证码 换一张
取 消