I have Visual C++ solution. One of the project needs to compiled targeting x86 as well as x64. With default setting it can be compiled once in solution file. Is it possible to build solution once but build the same project with two different settings ?
Thanks in advance for any help.
Visual Studio uses a Configuration Manager for this very problem. Right click your project, hit “Properties” and you’ll see the Configuration Manager button at the top of the window that pops up. Add a new solution platform (x64) and you’ll be good to go.
I typically use Property Sheets to define certain things for the project compilation (defining
_X64in 64-bit compilation, setting the output directory to$(SolutionDir)../../bin/$(Configuration)/$(PlatformName)/$(ProjectName)/).