



This workflow leverages Visual Studio’s native support for CMake, but the same instructions can be used to build a MSBuild-based Linux project in Visual Studio. If you’re interested in learning more about Docker as a tool to configure reproducible build environments, check out our post on using multi-stage containers for C++ development. This post focuses on creating your first docker container and building from Visual Studio. In this blog post we’re going to use Visual Studio’s native CMake support to build a simple Linux application in a Linux docker container over SSH. This is especially useful for C++ cross-platform developers because you can target a container that runs a different operating system than the one on your development machine. The virtualized OS, file system, environment settings, libraries, and other dependencies are all encapsulated and shipped as one image that can be shared between developers and machines. Docker containers provide a consistent development environment for building, testing, and deployment.
