I am using Visual Studio 2017 Community to develop application that is built on remote Linux machine (exactly Raspberry Pi 3). I have created a new project using Visual Studio's Raspberry Pi project template.

The problem is: even when I just change one line of code, the entire bunch of cpp files is rebuilding. My project consists 100+ source files and building time is reaching 10-20 minutes. It is really painful.

How can I change it, so building will only take place on changed file?