I have a Visual Studio 2010 project with C++ code that I want to run on 2 Systems. I develop,compile,debug, etc. it in Visual 2010 but also have a separate batchfile with which I can compile some of the classes for a different system.
How do I have to set up the configuration manager (or do whatever else is necessary) so that I can run,debug,etc. my project normally in vs2010 with mfc/win32 and then switch to another, new configuration where only a batch file is being executed from vs2010 (and no longer the vs2010 compiler) and the results of that are being shown in the output window ?
I got it working by creating a new configuration in the configuration manager where I selected any kind of platform (doesn’t matter for this) and then excluded all files from build with their individual file properties. The compiler has nothing to do then. So I added a custom build step in the project settings where my batch file is being executed. Now whenever I switch to this configuration in the menu only my batch file is being run and I can easily switch back to my normal debug profile for developing, testing and debugging in vs2010. Its not that elegant but it works…