

git clone project is the same as File New CMake Project in Visual Studio with one difference. You can clone this sample to get started. We have enabled this capability for projects that use CMake Presets. This is part of the Linux and embedded development with C++ workload., so make sure that is selected in your installation.

You will need to have Docker Desktop installed on Windows to use this capability.

Beginning in Visual Studio 2022 17.4 you can now use Dev Containers for your C++ projects as well. Visual Studio Code has had support for Dev Containers for some time now. We have been observing for some time that containers are becoming more popular in the C++ community for providing reproducible build environments. Through a Dockerfile all prerequisites are captured so that there is a consistent runtime environment anywhere the container is deployed and run Dev Containers expand this concept to capture everything necessary for developing and building an application in the container. We are happy to share with you that we have added Dev Container support In Visual Studio 2022 17.4 for C++ projects using CMake Presets.Ĭontainers are a great way to package up everything for running an application.
