I have a visual c# project from which I want to compile two executables: Full.exe, and Limited.exe. Limited.exe simply hides a couple of UI controls.
I’m thinking of adding another pair of solution configuration (DebugLimited and ReleaseLimited) which simply sets a flag, and then in my build script just build my app with Release configuration and with ReleaseLimited configuration.
Is there an easier way to accomplish this?
If you really want 2 differnet executables this approach works. Make sure that each flavor builds into its own directory. “Build-> batch build” option will let you build all of them at once.
If goal is to have different UI instead of different executables you can use setting in .config file to control what UI to show/hide (with appropritate code to turn on/off controls).