简体   繁体   中英

C# Single Deployment project for 32-bit and 64-bit application

I am creating a deployment project. I would like it include automatically the correct Solution Platform for the primary output(.exe) and correct content files (32-bit or 64-bit) depending on the Solution platform.

Currently, the setup project displays and error when building a Setup project where its TargetPlatform in incompatible with the projects target plat form (eg x86 vs. x64)

According to some threads, the only way to create deployment application 32-bit or 64-bit projects is to create separate Setup projects for the 32 and 64 -bit respectively Are there any ways we could just create a single deployment projects for all target playform?

regards,

I think that's what "Any CPU" config is for (rather than x86 or x64). I usually debug with x86 though since Edit and Continue is disabled in 64 bit 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