|
-
May 9th, 2013, 08:32 AM
#2
Re: VS2010. Conditional Build. Two versions of same program in one solution ?
You know how you can select Debug or Release for the build? Those are two different configurations and the output for each one goes into a different folder. You can open the Configuration Manager and create additional configurations if you so desire. From the Compile page of the project properties, you can add custom compilation constants for certain configurations and then use those constants in your code to include and exclude certain code based on the current configuration. When it's time to build, you select one configuration and build, then select another configuration and build again. Go to the bin folder and get the two separate outputs from the two separate subfolders.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|