I’m running Visual Studio Community 2015 w/ VisualGDB, working on an STM32 project. I would like to instruct the tool to build one particular file with each build. Is there a way to force recompilation on a file by file basis? If so, where do I implement that command and what is the format for that command?
There isn’t any specific setting that would do that directly, but you could try adding a pre-build step that would regenerate some header file, and including that file from all sources that you would like to be rebuilt.
You can configure custom pre-build steps via VisualGDB Project Properties -> Custom Build Steps.
As for the command line, it’s something for you to figure out. VisualGDB can run arbitrary command lines at different times during the build as configured via VisualGDB Project Properties, but it’s up to the user to make sure these command lines make sense and work as expected.