C++ Team Blog

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

Latest posts

Nov 16, 2016
Post comments count 0
Post likes count 0

Open any folder with C++ sources in Visual Studio 2017 RC

Marian Luparu

With the Visual Studio 2017 RC release, we're continuing to improve the "Open Folder" capabilities for C++ source code. In this release, we're adding support for building as well as easier configuration for the debugger and the C++ language services. If you are just getting started with "Open Folder" or want to read about these capabilities in more depth, head over to the Open Folder for C++ introductory post that has been updated with the content below. If you are using CMake, head over to our blog post introducing the CMake support in Visual Studio. Here are the improvements for the “Open Folder” C++ experien...

Nov 16, 2016
Post comments count 0
Post likes count 0

CMake support in Visual Studio – the Visual Studio 2017 RC update

Marian Luparu

Visual Studio 2017 RC is an important release when it comes to its support for CMake. The "Tools for CMake" VS component is now ready for public preview and we’d like to invite all of you to bring your CMake projects into VS and give us feedback on your experience. For an overview of the general Visual Studio CMake experience, head over to the announcement post for CMake support in Visual Studio that has been updated to include all the capabilities discussed in this post. Additionally, if you’re interested in the “Open Folder” capability for C++ projects that are not using CMake or MSBuild, check out the Open Fo...

Nov 16, 2016
Post comments count 0
Post likes count 0

Updates to Expression SFINAE in VS 2017 RC

Andrew Pardoe

Throughout the VS 2015 cycle we've been focusing on the quality of our expression SFINAE implementation. Because expression SFINAE issues can be subtle and complex we've been using popular libraries such as Boost and Microsoft's fork of Range-v3 to validate our implementation and find remaining bugs. As we shift the compiler team's focus to Visual Studio 2017 release we're excited to tell you about the improvements we've made in correctly parsing expression SFINAE. We've been tracking the changes and improvements to our parsing of expression SFINAE throughout the Visual Studio 2015 and 2017 cycle. The improvemen...

Nov 16, 2016
Post comments count 0
Post likes count 0

Give Visual C++ a Switch to Standard Conformance

Andrew Pardoe

This post was written by Gabriel Dos Reis, Phil Christensen, and Andrew Pardoe The Visual C++ Team is excited to announce that the compiler in Visual Studio 2017 RC will feature a mode much closer to ISO C++ standards conformance than any time in its history. This represents a major milestone in our journey to full ISO C++ conformance.  The mode is available now as an opt-in via the switch but will one day become the default mode for the Visual C++ compiler. Got a minute? Try Visual C++ conformance mode The Visual C++ Team is previewing a compiler mode whereby longstanding non-conforming C++ constructs are reje...

Nov 8, 2016
Post comments count 0
Post likes count 0

Visual C++ docs: the future is… soon!

EricMittelette

We on the Visual C++ documentation team are pleased to announce some changes to the API reference content in the following Visual C++ libraries: STL, MFC, ATL, AMP, and ConcRT. Since the beginning of MSDN online, the Visual C++ libraries have documented each class member, free function, macro, enum, and property on a separate web page. While this model works reasonably well if you know exactly what you are looking for, it doesn't support easy browsing or searching through multiple class members. We have heard from many developers that it is painful (sometimes literally) to click between multiple pages when explo...

Nov 8, 2016
Post comments count 0
Post likes count 0

Developing Linux C++ applications with Azure Docker containers

Ankit Asthana

In recent years, Visual Studio has added new features and experiences to allow developers to develop their C++ applications for non-Windows platforms such as Android, iOS and more recently Linux.  One of the challenges that Linux development brings to the table is making sure your native application works across the wide set of Linux distributions available. We have experienced this first-hand when developing the Visual Studio Code C/C++ extension where we needed to test the extension across a wide variations of Linux distributions. We typically build and test our C++ code on different versions of Ubuntu, Debian,...

Nov 1, 2016
Post comments count 0
Post likes count 0

Vcpkg updates: Static linking is now available

EricMittelette

One month ago, we announced the availability of Vcpkg a command line tool to easily acquire and build open source C++ lib and consume it in Visual Studio 2015. The initial release provided only dynamic link libraries, but we heard your feedback, and we are pleased to announce static linking support with Vcpkg. To generate static libraries, use one of the triplets: x86-windows-static, or x64-windows-static For example, to build zlib statically for x86 use: The library will be installed in the following folder:  vcpkg\installed\x86-windows-static Using static libraries Updated on 11/4: to clarify /MT usage and p...

Oct 26, 2016
Post comments count 0
Post likes count 0

Recommendations to speed C++ builds in Visual Studio

Sridhar Madhugiri [MSFT]

In this blog, I will discuss features, techniques and tools you can use to reduce build time for C++ projects. The primary focus of this post is to improve developer build time for the Debug Configuration as a part of your Edit/Build/Debug cycle (inner development loop). These recommendations are a result of investigating build issues across several projects. Developers invoke build frequently while writing and debugging code, so improvements here can have a large impact on productivity. Many of the recommendations focus on this stage, but others will carry over to build lab scenarios, clean builds with optimiza...

Oct 24, 2016
Post comments count 1
Post likes count 1

Building your C++ application with Visual Studio Code

Julia Reid

Did you know that you can build and debug C++ projects in Visual Studio Code with your compiler and debugger of choice? Although VS Code is a light-weight editor, you can set it up to resemble a full IDE, customizing IntelliSense, build, and debug configurations for your environment.  There are two recommended approaches for building a C++ application in VS Code:   If your project uses CMake, we recommend the CMake Tools extension for viewing, building, and debugging CMake targets. If you aren’t using CMake, you can define VS Code build tasks in tasks.json, which invoke your compiler of choice.  Bu...