C++ Team Blog

The latest in C++, Visual Studio, VS Code, and vcpkg from the MSFT C++ team

A new C++/WinRT update is available

A new update of C++/WinRT is available on GitHub! C++/WinRT is a standard C++ language projection for the Windows Runtime, implemented solely in header files. The C++/WinRT team has been quiet since their announcements at CppCon 2016. They've made a lot of progress in this update, leading up to the first public release of the CppWinRT ...

Visual C++ for Linux Development with CMake

In Visual Studio 2017 15.4 you can now target Linux from your CMake projects. This enables you to work on your existing code base that uses CMake as your build solution without having to convert it to a VS project. If your code base is cross-platform you can target both Windows and Linux from within Visual Studio. This post will give an ...

Visual Studio Code C/C++ extension August 2017 Update

Last week we shipped the August 2017 update to the Visual Studio Code C/C++ extension. Besides several bug fixes, this update includes a new command for resetting the IntelliSense database file and continued improvements to the new compiler-based IntelliSense engine. Thanks to everyone who provided us feedback on the new IntelliSense engine in...

Changes to Project Templates and Code Wizards in 15.3

Visual Studio 2017 Update 15.3 is a major release with many different improvements coming to the product. You can learn more about these changes in the 15.3 Release Notes. One aspect I want to highlight in this blog post pertains to changes made to the C++ templates in File > New Project and code wizards. We made these changes to account ...

How to use the C++ Core Guidelines Checker outside of Visual Studio

This post written by Sergiy Oryekhov and Andrew Pardoe The latest C++ Core Guidelines Checker is deployed as a part of the Native Code Analysis tools in Visual Studio 2017 15.3. These tools are designed for use in Visual Studio, which provides a rule set editor for filtering warnings. But what if you want to adopt the C++ Core Guidelines ...

CMake Support in Visual Studio: Customizing your Environment

In Visual Studio 15.3, there are new ways for you to apply advanced configuration to your CMake environments. Please download the latest and try out the latest CMake features.  If you are just getting started with CMake, follow the link to learn more about CMake support in Visual Studio.  We are looking forward to your feedback. What...

Managing warnings in the C++ Core Guidelines Checker

This post written by Sergiy Oryekhov and Andrew Pardoe With several new rules added to the Core Guidelines Checker in Visual Studio 2017 15.3, the amount of warnings produced for pre-existing code may greatly increase. The C++ Core Guidelines include a lot of recommendations that cover all kinds of situations in C+ code. We know that not ...

C++ Core Guidelines Checker in Visual Studio 2017

This post written by Sergiy Oryekhov and Andrew Pardoe The C++ Core Guidelines can help improve your code and decrease your cost of maintenance by offering a wide range of recommendations: encouraging use of the standard library, avoiding use of unsafe practices whenever possible, maintaining a consistent style, and helping you to enforce ...

C++ Unit Testing Updates: Announcing Boost.Test Adapter and Improved Google Test Support

Back in May, the C++ team announced the Test Adapter for Google Test – a Visual Studio extension that allows you to run and manage your Google Test-based unit tests directly in Visual Studio. You can do this using the Test Explorer window, and, if you’re a Visual Studio Enterprise user, you can run a code coverage analysis to check for ...