{"id":224986,"date":"2019-04-24T10:00:38","date_gmt":"2019-04-24T17:00:38","guid":{"rendered":"https:\/\/devblogs.microsoft.com\/visualstudio\/?p=224986"},"modified":"2019-04-30T22:02:09","modified_gmt":"2019-05-01T05:02:09","slug":"visual-studio-2019-version-16-1-preview-2","status":"publish","type":"post","link":"https:\/\/devblogs.microsoft.com\/visualstudio\/visual-studio-2019-version-16-1-preview-2\/","title":{"rendered":"Visual Studio 2019 version 16.1 Preview 2"},"content":{"rendered":"<p>The second preview of Visual Studio 2019 version 16.1 is now available. You can <a href=\"https:\/\/visualstudio.microsoft.com\/vs\/preview\/\">download it from VisualStudio.com<\/a>, or, if you already have installed Preview, just <a href=\"https:\/\/docs.microsoft.com\/visualstudio\/install\/update-visual-studio?view=vs-2019\">click the notification bell inside Visual Studio to update<\/a>. This latest preview contains additional performance and reliability fixes as well as enhancements for debugging, NuGet, extensibility, and C++ development. We\u2019ve highlighted some notable features below. You can see a list of all the changes in the <a href=\"https:\/\/docs.microsoft.com\/visualstudio\/releases\/2019\/release-notes-preview\">Preview release notes<\/a>.<\/p>\n<h2>Improvements for C++ developers<\/h2>\n<h4>CMake integration<\/h4>\n<p><strong>In-editor helpers: <\/strong>We\u2019ve added in-editor documentation for CMake commands, variables, and properties. You can now leverage IntelliSense autocompletion and quick info tooltips when editing a CMakeLists.txt file, which will save you time spent outside of the IDE referencing documentation and make the process less error-prone. See the C++ Team blog post on <a href=\"https:\/\/devblogs.microsoft.com\/cppblog\/in-editor-documentation-for-cmake-in-visual-studio\/\">in-editor documentation for CMake in Visual Studio<\/a> for more information.<\/p>\n<p>In addition, Preview 2 adds lightbulbs for missing #includes that can be installed by vcpkg, and provides package autocompletion for the CMake find_package directive.<\/p>\n<h4 style=\"font-family: Arimo, 'Helvetica Neue', Arial, sans-serif; color: #52595e;\"><img decoding=\"async\" class=\"aligncenter wp-image-224996 size-full\" src=\"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-content\/uploads\/sites\/4\/2019\/04\/16.1p2-CMakeSubProject.jpg\" alt=\"CMake Lightbulb hints for missing #Includes\" width=\"479\" height=\"112\" srcset=\"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-content\/uploads\/sites\/4\/2019\/04\/16.1p2-CMakeSubProject.jpg 479w, https:\/\/devblogs.microsoft.com\/visualstudio\/wp-content\/uploads\/sites\/4\/2019\/04\/16.1p2-CMakeSubProject-300x70.jpg 300w\" sizes=\"(max-width: 479px) 100vw, 479px\" \/><\/h4>\n<h4 style=\"font-family: Arimo, 'Helvetica Neue', Arial, sans-serif; color: #52595e;\"><img decoding=\"async\" class=\"aligncenter wp-image-224995 size-full\" style=\"font-size: 1rem;\" src=\"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-content\/uploads\/sites\/4\/2019\/04\/16.1p2-CMakeFindPackage.jpg\" alt=\"CMake Find Package Autocompletion\" width=\"659\" height=\"240\" srcset=\"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-content\/uploads\/sites\/4\/2019\/04\/16.1p2-CMakeFindPackage.jpg 659w, https:\/\/devblogs.microsoft.com\/visualstudio\/wp-content\/uploads\/sites\/4\/2019\/04\/16.1p2-CMakeFindPackage-300x109.jpg 300w\" sizes=\"(max-width: 659px) 100vw, 659px\" \/><\/h4>\n<p><strong>Clang\/LLVM support:<\/strong> CMake integration now supports the Clang\/LLVM toolchain for projects targeting Windows and\/or Linux, so you can build, edit, and debug CMake projects that use Clang, MSVC, or GCC. The CMake version that ships with Visual Studio has been upgraded to 3.14 as well. This version adds built-in support for MSBuild generators targeting Visual Studio 2019 projects as well as file-based IDE integration APIs.<\/p>\n<p>To learn more about these and other CMake improvements, see the C++ Team blog post\u00a0<a href=\"http:\/\/aka.ms\/cpp\/161p2cmake\">Visual Studio 2019 version 16.1 Preview 2 CMake improvements<\/a>.<\/p>\n<h4>C++ productivity improvements<\/h4>\n<p><strong>C++ Template IntelliSense:<\/strong> The Template Bar dropdown menu is populated based on the instantiations of that template in your codebase. More details on this feature can be found in the post\u00a0<a href=\"https:\/\/aka.ms\/cpp\/161p2templateisense\">\u201cC++ Template IntelliSense: Auto-populate instantiations in template bar\u201d<\/a>\u00a0on the C++ Team blog.<\/p>\n<h4 style=\"font-family: Arimo, 'Helvetica Neue', Arial, sans-serif; color: #52595e;\"><img decoding=\"async\" class=\"aligncenter wp-image-224997 size-full\" src=\"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-content\/uploads\/sites\/4\/2019\/04\/16.1p2-CppTemplateIntelliSense.jpg\" alt=\"C++ Template IntelliSense\" width=\"428\" height=\"187\" srcset=\"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-content\/uploads\/sites\/4\/2019\/04\/16.1p2-CppTemplateIntelliSense.jpg 428w, https:\/\/devblogs.microsoft.com\/visualstudio\/wp-content\/uploads\/sites\/4\/2019\/04\/16.1p2-CppTemplateIntelliSense-300x131.jpg 300w\" sizes=\"(max-width: 428px) 100vw, 428px\" \/><\/h4>\n<h4>Progress on C++20 conformance<\/h4>\n<p><strong>Conformance improvements: <\/strong>New C++20 preview features have been added to the compiler and are available under <code>\/std:c++latest<\/code><strong>. <\/strong>Per <a href=\"https:\/\/wg21.link\/p0846r0\">P0846R0<\/a>, the compiler has increased ability to find function templates via argument-dependent lookup for function call expressions with explicit template arguments. Also supported is designated initialization (<a href=\"https:\/\/wg21.link\/p0329r4\">P0329R4<\/a>), which allows specific members to be selected in aggregate initialization, e.g. using the <code>Type t { .member = expr }<\/code>\u00a0syntax.<\/p>\n<p>We have also added new C++20 features to our implementation of the C++ Standard Library, including <code>starts_with()<\/code> and <code>ends_with()<\/code> for <code>basic_string<\/code>\/<code>basic_string_view<\/code>, and <code>contains()<\/code> for associative containers. For more information, see the <a href=\"https:\/\/docs.microsoft.com\/visualstudio\/releases\/2019\/release-notes-preview#C++P2\">Preview 2 release notes<\/a>.<\/p>\n<h2>Improved NuGet package debugging<\/h2>\n<p>Last year, we announced improved package debugging support with <a href=\"https:\/\/blog.nuget.org\/20181116\/Improved-debugging-experience-with-the-NuGet-org-symbol-server-and-snupkg.html\">NuGet.org Symbol Server<\/a>. Starting with Visual Studio version 16.1 Preview 2, debugging NuGet packages just became a whole lot simpler now that you can enable NuGet.org Symbol Server from the <strong>Debugging\\Symbols<\/strong> option.<\/p>\n<h4 style=\"font-family: Arimo, 'Helvetica Neue', Arial, sans-serif; color: #52595e;\"><img decoding=\"async\" class=\"aligncenter wp-image-224998 size-full\" style=\"font-size: 1.5rem;\" src=\"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-content\/uploads\/sites\/4\/2019\/04\/16.1p2-NuGetSymbolServer.jpg\" alt=\"NuGet Symbol Server\" width=\"629\" height=\"420\" srcset=\"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-content\/uploads\/sites\/4\/2019\/04\/16.1p2-NuGetSymbolServer.jpg 629w, https:\/\/devblogs.microsoft.com\/visualstudio\/wp-content\/uploads\/sites\/4\/2019\/04\/16.1p2-NuGetSymbolServer-300x200.jpg 300w\" sizes=\"(max-width: 629px) 100vw, 629px\" \/><\/h4>\n<h2>Source Link Improvements<\/h2>\n<p>Source Link now supports Windows authentication scenarios. Ultimately, using Windows authentication will allow you to use Source Link for on-premises Azure DevOps Servers (formerly, Team Foundation Server).<\/p>\n<h2>Visual Studio Search<\/h2>\n<p>Based on user feedback, Visual Studio Search will now display the three most recently used actions on focus. This makes it even easier to find previously searched-for items.<\/p>\n<p><img decoding=\"async\" class=\"aligncenter wp-image-224999 size-full\" style=\"font-size: 1rem;\" src=\"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-content\/uploads\/sites\/4\/2019\/04\/16.1p2-SearchMRU.jpg\" alt=\"Visual Studio Search Most Recently Used List\" width=\"488\" height=\"299\" srcset=\"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-content\/uploads\/sites\/4\/2019\/04\/16.1p2-SearchMRU.jpg 488w, https:\/\/devblogs.microsoft.com\/visualstudio\/wp-content\/uploads\/sites\/4\/2019\/04\/16.1p2-SearchMRU-300x184.jpg 300w\" sizes=\"(max-width: 488px) 100vw, 488px\" \/><\/p>\n<h2>Solution view selector<\/h2>\n<p>The button for switching the Solution Explorer view will now consistently show you a dropdown menu of all possible views. Per your feedback, this solution removes the confusion of having the button default to toggling between Folder View and Solution View and not being clear on which solution it would open.<\/p>\n<h2 style=\"font-family: Arimo, 'Helvetica Neue', Arial, sans-serif; color: #52595e;\"><img decoding=\"async\" class=\"aligncenter wp-image-225000 size-full\" style=\"font-size: 1rem;\" src=\"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-content\/uploads\/sites\/4\/2019\/04\/16.1p2-SolutionView.jpg\" alt=\"Solution View Selector\" width=\"341\" height=\"187\" srcset=\"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-content\/uploads\/sites\/4\/2019\/04\/16.1p2-SolutionView.jpg 341w, https:\/\/devblogs.microsoft.com\/visualstudio\/wp-content\/uploads\/sites\/4\/2019\/04\/16.1p2-SolutionView-300x165.jpg 300w\" sizes=\"(max-width: 341px) 100vw, 341px\" \/><\/h2>\n<p>We have also improved the loading time for very large solutions, where the amount of improvement varies based on the size of the solution.<\/p>\n<h2>Extensibility<\/h2>\n<p>A number of updates to Visual Studio extensibility are included in this release, including Shared Project support and per-monitor awareness for dialogs. We\u2019ve also eliminated the need for a .resx file and disabled synchronous auto-load. Additionally, the Visual Studio 2019 version of Microsoft.VisualStudio.SDK is now available as a NuGet package. Read all about these changes in the <a href=\"https:\/\/devblogs.microsoft.com\/visualstudio\/new-features-for-extension-authors-in-visual-studio-2019-version-16-1\/\">New features for extension authors in Visual Studio 2019 version 16.1<\/a> blog post.<\/p>\n<p>Another notable extensibility update in this Preview is that project templates now support custom tags which allow them to show up in the New Project Dialog. See how to add tags in the blog post <a href=\"https:\/\/devblogs.microsoft.com\/visualstudio\/build-visual-studio-templates-with-tags-for-efficient-user-search-and-grouping\/\">Build Visual Studio templates with tags, for efficient user search and grouping<\/a>.<\/p>\n<h2>App Installer Templates<\/h2>\n<p>Over the last few releases, Visual Studio has improved the sideload packaging distribution experience for developers by introducing the <a href=\"https:\/\/docs.microsoft.com\/windows\/msix\/app-installer\/app-installer-file-overview\">App Installer file<\/a> which specifies where an application is located and how it should be updated. Users who choose this method of application distribution simply share the App Installer file with their users rather than the actual app container.<\/p>\n<p>The options available for use in the App Installer file are different based upon the Windows version the user is targeting. To enable maximum flexibility, Visual Studio 2019 version 16.1 allows users to define and configure the <a href=\"https:\/\/docs.microsoft.com\/windows\/msix\/app-installer\/update-settings\">App Installer Update settings<\/a> from a template Package.appinstaller.<\/p>\n<p>Activate this template by right-clicking the project and selecting <strong>Add &gt; New Item &gt; App Installer Template<\/strong>.<\/p>\n<h2 style=\"font-family: Arimo, 'Helvetica Neue', Arial, sans-serif; color: #52595e;\"><img decoding=\"async\" class=\"aligncenter wp-image-224994 size-full\" style=\"font-size: 1rem;\" src=\"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-content\/uploads\/sites\/4\/2019\/04\/16.1p2-AppInstallerTemplates.jpg\" alt=\"App Installer Templates\" width=\"621\" height=\"427\" srcset=\"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-content\/uploads\/sites\/4\/2019\/04\/16.1p2-AppInstallerTemplates.jpg 621w, https:\/\/devblogs.microsoft.com\/visualstudio\/wp-content\/uploads\/sites\/4\/2019\/04\/16.1p2-AppInstallerTemplates-300x206.jpg 300w\" sizes=\"(max-width: 621px) 100vw, 621px\" \/><\/h2>\n<p>The Package.appinstaller template file is available to edit and customize the update settings you want to use.<\/p>\n<p><img decoding=\"async\" class=\"aligncenter wp-image-224993 size-full\" style=\"font-size: 1rem;\" src=\"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-content\/uploads\/sites\/4\/2019\/04\/16.1p2-AppInstallerSettings.jpg\" alt=\"App Installer Template Settings\" width=\"610\" height=\"291\" srcset=\"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-content\/uploads\/sites\/4\/2019\/04\/16.1p2-AppInstallerSettings.jpg 610w, https:\/\/devblogs.microsoft.com\/visualstudio\/wp-content\/uploads\/sites\/4\/2019\/04\/16.1p2-AppInstallerSettings-300x143.jpg 300w\" sizes=\"(max-width: 610px) 100vw, 610px\" \/><\/p>\n<p>Note that once the template is added to the project, the user will no longer be able to customize update settings in the packaging wizard. All customizations must thus be edited in the template.<\/p>\n<h2>Use the latest features; give us feedback<\/h2>\n<p>To try out this preview of the latest features, either\u00a0<a href=\"https:\/\/visualstudio.microsoft.com\/vs\/preview\/\">download Visual Studio 2019 version 16.1 Preview 2<\/a>,\u00a0update your existing preview channel installation by using <a href=\"https:\/\/docs.microsoft.com\/visualstudio\/install\/update-visual-studio?view=vs-2019\">the notification bell inside Visual Studio<\/a>, or click Update from within the Visual Studio Installer.<\/p>\n<p>We continue to value your feedback. As always, let us know of any issues you run into by using the <a href=\"https:\/\/docs.microsoft.com\/visualstudio\/ide\/how-to-report-a-problem-with-visual-studio?view=vs-2019\">Report a Problem tool<\/a> in Visual Studio. You can also head over to the <a href=\"https:\/\/developercommunity.visualstudio.com\/\">Visual Studio Developer Community<\/a> to track your issues, suggest a feature, ask questions, and find answers from others. We use your feedback to continue to improve Visual Studio 2019, so thank you again on behalf of our entire team.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Visual Studio 2019 version 16.1 Preview 2 is now available with performance and reliability improvements as well as enhancements to C++, debugging, extensibility, and the IDE experience.<\/p>\n","protected":false},"author":868,"featured_media":224483,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[1195,1388,155],"tags":[510,9,294,298,12,475],"class_list":["post-224986","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-cross-platform","category-extensibility","category-visual-studio","tag-cpp","tag-debug","tag-extensions","tag-nuget","tag-visual-studio","tag-visual-studio-2019"],"acf":[],"blog_post_summary":"<p>Visual Studio 2019 version 16.1 Preview 2 is now available with performance and reliability improvements as well as enhancements to C++, debugging, extensibility, and the IDE experience.<\/p>\n","_links":{"self":[{"href":"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-json\/wp\/v2\/posts\/224986","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-json\/wp\/v2\/users\/868"}],"replies":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-json\/wp\/v2\/comments?post=224986"}],"version-history":[{"count":0,"href":"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-json\/wp\/v2\/posts\/224986\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-json\/wp\/v2\/media\/224483"}],"wp:attachment":[{"href":"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-json\/wp\/v2\/media?parent=224986"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-json\/wp\/v2\/categories?post=224986"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-json\/wp\/v2\/tags?post=224986"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}