This is a simple example of how to build a visual studio c++ application project and static library project located in a visual studio solution.
This way you can use the light weight VS Code editor but get the full msbuild tools, including incremental builds when only changing a single file.