简体   繁体   中英

Compile debug as 32 bit and release as 64 bit c#

I am creating a console application which will depend on certain installed files belonging to another piece of software.

On my local machine, the 32 bit version of that software is installed. On the servers, the 64 bit version is installed.

There is nothing I can do to change this. I can not install the 64 bit version locally (due to reasons I can't comprehend, but no doubt somebody somewhere thinks it must be a good idea).

Is there a way to have the debug build as 32 bit and release as 64 bit? Currently I am having to change it every time I want to copy up and then change it back.

I am using C# in VS 2019

In Solution Properties -> Configuration manager you can configure target platform for debug and release mode.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM