Visual Studio 2022 is available now! Check out the video below to learn what’s new for C++ developers who are building for more than just Windows, or who are developing with an eye to open source. This video covers:
- Building with Visual Studio’s CMake Presets integration
- Managing dependencies with a vcpkg manifest file and binary caching
- Editing CMake scripts with CMake in-editor documentation and language services for CMake
- Building and debugging a Linux GUI application on WSL 2 with Visual Studio’s native support for WSL 2
- Reproducing local builds with CMake Presets and GitHub Actions
- Debugging a remote process with LLDB
Contact us
Have questions or comments about Visual Studio 2022? Want to share feedback with our team? You can contact us at visualcpp@microsoft.com or on Twitter (@VisualC). The best way to file a bug or suggest a feature is with the Send Feedback button in the upper right-hand corner of the IDE. See How to report a problem with Visual Studio or Visual Studio Installer for more information.
Thanks you for the CMake support better and better.
I am enjoying it.
I have 3 concerns:
1. In my use of VS, CMakeList.txt file changes will cause the re-generation, parsing and solution tree refreshing.
It may takes long. Would you please optimize it ?
2. New CMake project has only one x64-debug, Would you please add Win/Linux(clang) x86/x64 , totally 4 configuration by default?
3. Would some hot/critical CMake settings(like MTd/MT, static/dynamic etc) can...
Guys please fix suggestions on cmake editor. They either don’t show up or break valid statements.
Thank you Microsoft for moving in the right direction of supporting cross-platform development.
Still, I'd like to draw some attention to the fact that the way CMake build presets are implemented in Visual Studio is explicitly discouraged by CMake developers. As Erica commented earlier, current approach is to have separate configure presets and build trees for each build preset.
See https://cmake.org/cmake/help/latest/guide/ide-integration/index.html#configuring:
IDEs should avoid creating more build trees than necessary, and only create multiple build trees...
Thanks for the feedback. We are working on multi-config support now, and it will be available in an upcoming preview release of Visual Studio 2022.
I'm really glad the VS team is invested in making cross-platform development with CMake more user friendly. Visual Studio is an excellent IDE and CMake is a solid build system.
I have 2 main concerns:
Learning CMake:
Teaching more and more people how to use CMake. It would be great if Microsoft helped upstream tutorials and documentation to CMake with up to date practices.
https://gitlab.kitware.com/cmake/cmake
The current official CMake tutorial is really bare bones. It would be nice to...