If you want to skip a cpp file from building right click that file in solution explorer, select Properties, General, set Excluded From Build to Yes (make sure that the selected configuration is Release).
If you want to skip a whole project from build then right click the solution, go to Properties, Configuration Properties and here you have a list of projects if a Build checkbox column. Uncheck the project what you don't need (also make sure your current configuration is Release).
|