{"id":246306,"date":"2023-12-12T01:00:11","date_gmt":"2023-12-12T09:00:11","guid":{"rendered":"https:\/\/devblogs.microsoft.com\/visualstudio\/?p=246306"},"modified":"2024-01-30T17:00:38","modified_gmt":"2024-01-31T01:00:38","slug":"visual-studio-17-9-preview-2-has-arrived","status":"publish","type":"post","link":"https:\/\/devblogs.microsoft.com\/visualstudio\/visual-studio-17-9-preview-2-has-arrived\/","title":{"rendered":"Visual Studio 17.9 Preview 2 has arrived!"},"content":{"rendered":"<p><span data-contrast=\"none\">Welcome to the release of Visual Studio 2022 17.9 Preview 2, which wraps up our development efforts for 2023. This update brings new features and enhancements, building on the solid foundation set by <a href=\"https:\/\/devblogs.microsoft.com\/visualstudio\/introducing-visual-studio-17-9-preview-1-is-here\/\">Preview 1<\/a> in November.<\/span><span data-ccp-props=\"{&quot;201341983&quot;:0,&quot;335559739&quot;:0,&quot;335559740&quot;:240}\">\u00a0<\/span><\/p>\n<p><div  class=\"d-flex justify-content-center\"><a class=\"cta_button_link btn-primary mb-24\" href=\"https:\/\/visualstudio.microsoft.com\/vs\/preview\/\" target=\"_blank\">Download Visual Studio 17.9 Preview 2<\/a><\/div><\/p>\n<p><span data-contrast=\"none\">In this preview, we&#8217;ve made some improvements to the C++ and .NET MAUI development experiences. You&#8217;ll find the &#8216;#include Diagnostics&#8217; for C++ more robust and the &#8216;Live Property Explorer&#8217; for .NET MAUI now available, making your coding more intuitive and efficient, along with other new features. These updates reflect our commitment to continuously improving Visual Studio in response to your feedback.<\/span><span data-ccp-props=\"{&quot;201341983&quot;:0,&quot;335559739&quot;:0,&quot;335559740&quot;:240}\">\u00a0<\/span><\/p>\n<p><span data-contrast=\"none\">As the year draws to a close, we extend our warmest holiday wishes to everyone in the Visual Studio Developer Community. Your support and engagement throughout the year have been pivotal. We are excited to continue this journey with you in 2024!<\/span><\/p>\n<p><span data-contrast=\"none\">Let\u2019s dive into what Visual Studio 2022 17.9 Preview 2 has brought us this holiday season!<\/span><span data-ccp-props=\"{&quot;201341983&quot;:0,&quot;335559739&quot;:0,&quot;335559740&quot;:240}\">\u00a0\u2603\ufe0f\ud83c\udf81<\/span><\/p>\n<table style=\"font-weight: 400; width: 50.0344%;\" data-tablestyle=\"MsoNormalTable\" data-tablelook=\"1184\" aria-rowcount=\"5\">\n<tbody>\n<tr aria-rowindex=\"1\">\n<td style=\"width: 25.6356%;\" data-celllook=\"4369\"><b><span data-contrast=\"none\">Area<\/span><\/b><span data-contrast=\"none\">\u202f\u202f<\/span><span data-ccp-props=\"{&quot;201341983&quot;:0,&quot;335551550&quot;:2,&quot;335551620&quot;:2,&quot;335559739&quot;:0,&quot;335559740&quot;:240}\">\u00a0<\/span><\/td>\n<td style=\"width: 74.3644%;\" data-celllook=\"4369\"><b><span data-contrast=\"none\">Enhancements<\/span><\/b><span data-contrast=\"none\">\u202f\u202f<\/span><span data-ccp-props=\"{&quot;201341983&quot;:0,&quot;335551550&quot;:2,&quot;335551620&quot;:2,&quot;335559739&quot;:0,&quot;335559740&quot;:240}\">\u00a0<\/span><\/td>\n<\/tr>\n<tr aria-rowindex=\"2\">\n<td style=\"width: 25.6356%;\" data-celllook=\"4369\"><b><span data-contrast=\"none\">Productivity<\/span><\/b><span data-contrast=\"none\">\u202f<\/span><span data-ccp-props=\"{&quot;201341983&quot;:0,&quot;335551550&quot;:2,&quot;335551620&quot;:2,&quot;335559739&quot;:0,&quot;335559740&quot;:240}\">\u00a0<\/span><\/td>\n<td style=\"width: 74.3644%;\" data-celllook=\"4369\"><span data-contrast=\"none\">Auto Surround quotes with brackets<\/span><span data-ccp-props=\"{&quot;201341983&quot;:0,&quot;335551550&quot;:2,&quot;335551620&quot;:2,&quot;335559739&quot;:0,&quot;335559740&quot;:240}\">\u00a0<\/span><\/td>\n<\/tr>\n<tr aria-rowindex=\"3\">\n<td style=\"width: 25.6356%;\" data-celllook=\"4369\"><b><span data-contrast=\"none\">C++ Game Dev<\/span><\/b><span data-contrast=\"none\">\u202f<\/span><span data-ccp-props=\"{&quot;201341983&quot;:0,&quot;335551550&quot;:2,&quot;335551620&quot;:2,&quot;335559739&quot;:0,&quot;335559740&quot;:240}\">\u00a0<\/span><\/td>\n<td style=\"width: 74.3644%;\" data-celllook=\"4369\"><span data-contrast=\"none\">#include diagnostics\u202f, <a href=\"https:\/\/developercommunity.visualstudio.com\/t\/ctest-support-for-remote-linux-targets\/431771\">Remote Linux Unit Testing<\/a><\/span><span data-ccp-props=\"{&quot;201341983&quot;:0,&quot;335551550&quot;:2,&quot;335551620&quot;:2,&quot;335559739&quot;:0,&quot;335559740&quot;:240}\">\u00a0<\/span><\/td>\n<\/tr>\n<tr aria-rowindex=\"4\">\n<td style=\"width: 25.6356%;\" data-celllook=\"4369\"><b><span data-contrast=\"none\">.NET\/C#<\/span><\/b><span data-contrast=\"none\">\u202f<\/span><span data-ccp-props=\"{&quot;201341983&quot;:0,&quot;335551550&quot;:2,&quot;335551620&quot;:2,&quot;335559739&quot;:0,&quot;335559740&quot;:240}\">\u00a0<\/span><\/td>\n<td style=\"width: 74.3644%;\" data-celllook=\"4369\"><a href=\"https:\/\/developercommunity.visualstudio.com\/t\/Live-Property-Explorer-doesnt-show-prop\/1703289\"><span data-contrast=\"auto\">Live Property Explorer Support for .NET MAUI \u202f<\/span><span data-ccp-props=\"{}\">\u00a0<\/span><\/a><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<h2>Productivity<\/h2>\n<h2 aria-level=\"2\"><span data-contrast=\"none\">Auto Surround with Quotes or Brackets<\/span><span data-ccp-props=\"{&quot;134245418&quot;:true,&quot;134245529&quot;:true,&quot;335559738&quot;:40,&quot;335559739&quot;:0}\">\u00a0<\/span><\/h2>\n<p><span data-contrast=\"auto\">You can now easily surround a selection with bracket delimiters including: &#8220;double quotes&#8221;, &#8216;single quotes&#8217;, (parentheses).<\/span><span data-ccp-props=\"{&quot;134245418&quot;:true,&quot;134245529&quot;:true}\">\u00a0<\/span><\/p>\n<p><a href=\"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-content\/uploads\/sites\/4\/2023\/12\/Picture11.gif\"><img decoding=\"async\" class=\"aligncenter size-full wp-image-246316\" src=\"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-content\/uploads\/sites\/4\/2023\/12\/Picture11.gif\" alt=\"New surround with brackets functionality\" width=\"1920\" height=\"786\" \/><\/a><\/p>\n<p><span data-contrast=\"auto\">To enable or disable this feature, go to Tools &gt; Options &gt; Text Editor and check the &#8220;Automatically surround selections when typing quotes or brackets&#8221; option.<\/span><span data-ccp-props=\"{&quot;134245418&quot;:true,&quot;134245529&quot;:true}\">\u00a0<\/span><\/p>\n<h1 aria-level=\"2\"><b><span data-contrast=\"none\">C++<\/span><\/b><span data-contrast=\"none\">\u00a0<\/span><span data-ccp-props=\"{&quot;134245418&quot;:true,&quot;134245529&quot;:true,&quot;335559738&quot;:40,&quot;335559739&quot;:0}\">\u00a0<\/span><\/h2>\n<h2 aria-level=\"2\"><span data-contrast=\"none\">#include Diagnostics<\/span><span data-ccp-props=\"{&quot;134245418&quot;:true,&quot;134245529&quot;:true,&quot;335559738&quot;:40,&quot;335559739&quot;:0}\">\u00a0<\/span><\/h2>\n<p><b><span data-contrast=\"auto\">#include diagnostics references: <\/span><\/b><span data-contrast=\"auto\">You can now use this feature to visualize how many times each #include directive has been referenced in your code. You can view the specific references by clicking on the reference count on top of the directive. You can also navigate to any reference by double-clicking on it in the list.\u00a0<\/span><span data-ccp-props=\"{&quot;134245418&quot;:true,&quot;134245529&quot;:true}\">\u00a0<\/span><\/p>\n<p><b><span data-contrast=\"auto\">#include diagnostics build time:<\/span><\/b><span data-contrast=\"auto\"> This feature also enables you to see the compilation time of your #include directives once you have run Build Insights.<\/span><span data-ccp-props=\"{&quot;134245418&quot;:true,&quot;134245529&quot;:true}\">\u00a0<\/span><\/p>\n<p><img decoding=\"async\" class=\"aligncenter size-full\" src=\"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-content\/uploads\/sites\/4\/2023\/12\/include-diag.gif\" width=\"2712\" height=\"1020\" \/><\/p>\n<p>By default, this feature is disabled. To enable it, right-click anywhere in your code editor and select &#8220;#include Directives&#8221; from the context menu. Then, choose &#8220;Turn #include Diagnostics On&#8221;.<\/p>\n<p><a href=\"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-content\/uploads\/sites\/4\/2023\/12\/remote-linux-2.png\"><img decoding=\"async\" class=\"aligncenter size-full wp-image-246312\" src=\"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-content\/uploads\/sites\/4\/2023\/12\/remote-linux-2.png\" alt=\"Picture showing how to enable the include diagnostics feature\" width=\"750\" height=\"242\" srcset=\"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-content\/uploads\/sites\/4\/2023\/12\/remote-linux-2.png 750w, https:\/\/devblogs.microsoft.com\/visualstudio\/wp-content\/uploads\/sites\/4\/2023\/12\/remote-linux-2-300x97.png 300w\" sizes=\"(max-width: 750px) 100vw, 750px\" \/><\/a><\/p>\n<h2>Remote Linux Unit Testing<\/h2>\n<p>Based on <a href=\"https:\/\/developercommunity.visualstudio.com\/t\/ctest-support-for-remote-linux-targets\/431771\">your feedback<\/a> we have enabled running unit tests for remote Linux scenarios. Try it out with your C++ projects targeting Linux on WSL or remote systems in the Test Explorer. Learn more about how the <a href=\"https:\/\/devblogs.microsoft.com\/cppblog\/azure-networking-team-reaches-peak-productivity-with-visual-studios-new-remote-linux-capabilities-and-improvements\">Azure Networking Team has used remote Linux in Visual Studio<\/a> including remote unit testing.<a href=\"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-content\/uploads\/sites\/4\/2023\/12\/Picture13.png\"><img decoding=\"async\" class=\"aligncenter wp-image-246321 size-full\" src=\"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-content\/uploads\/sites\/4\/2023\/12\/Picture13.png\" alt=\"Remote linux testing\" width=\"1024\" height=\"544\" srcset=\"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-content\/uploads\/sites\/4\/2023\/12\/Picture13.png 1024w, https:\/\/devblogs.microsoft.com\/visualstudio\/wp-content\/uploads\/sites\/4\/2023\/12\/Picture13-300x159.png 300w, https:\/\/devblogs.microsoft.com\/visualstudio\/wp-content\/uploads\/sites\/4\/2023\/12\/Picture13-768x408.png 768w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/a><\/p>\n<h2>.NET\/C#<\/h2>\n<h2>Live Property Explorer Support for .NET MAUI<\/h2>\n<p>Spend less time debugging and more time building great apps. Live Property Explorer, a powerful tool that enables more efficient development, is now supported with .NET MAUI. It enables you to inspect XAML properties while debugging, to be used in conjunction with XAML Live Preview and Live Visual Tree.<a href=\"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-content\/uploads\/sites\/4\/2023\/12\/lpe1.png\"><img decoding=\"async\" class=\"aligncenter size-full wp-image-246310\" src=\"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-content\/uploads\/sites\/4\/2023\/12\/lpe1.png\" alt=\"Screenshot of Visual Studio with the live property explorer open\" width=\"1382\" height=\"622\" srcset=\"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-content\/uploads\/sites\/4\/2023\/12\/lpe1.png 1382w, https:\/\/devblogs.microsoft.com\/visualstudio\/wp-content\/uploads\/sites\/4\/2023\/12\/lpe1-300x135.png 300w, https:\/\/devblogs.microsoft.com\/visualstudio\/wp-content\/uploads\/sites\/4\/2023\/12\/lpe1-1024x461.png 1024w, https:\/\/devblogs.microsoft.com\/visualstudio\/wp-content\/uploads\/sites\/4\/2023\/12\/lpe1-768x346.png 768w\" sizes=\"(max-width: 1382px) 100vw, 1382px\" \/><\/a><\/p>\n<p>With LPE, you can easily view and tweak the properties of your app controls at runtime, which is especially useful when you&#8217;re looking to debug issues, optimize performance, or investigate where a property is defined in.<\/p>\n<p>To access the Live Property Explorer, first start debugging your app (F5). Then, navigate to <strong>Debug &gt; Windows &gt; Live Property Explorer<\/strong> . Once you&#8217;ve opened the Live Property Explorer, you can use it to explore and live edit properties in your .NET MAUI app. For more information, visit <a href=\"https:\/\/learn.microsoft.com\/visualstudio\/xaml-tools\/inspect-xaml-properties-while-debugging\">Inspect XAML properties while debugging<\/a>.<\/p>\n<p><a href=\"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-content\/uploads\/sites\/4\/2023\/12\/lpe-2.png\"><img decoding=\"async\" class=\"aligncenter size-full wp-image-246309\" src=\"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-content\/uploads\/sites\/4\/2023\/12\/lpe-2.png\" alt=\"Menu to enable live property explorer\" width=\"480\" height=\"270\" srcset=\"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-content\/uploads\/sites\/4\/2023\/12\/lpe-2.png 480w, https:\/\/devblogs.microsoft.com\/visualstudio\/wp-content\/uploads\/sites\/4\/2023\/12\/lpe-2-300x169.png 300w\" sizes=\"(max-width: 480px) 100vw, 480px\" \/><\/a><\/p>\n<h2>Share your feedback and stay connected with Visual Studio!<\/h2>\n<p>We appreciate all the time you\u2019ve spent reporting issues\/suggestions this year, and we hope you continue to share with us when using Visual Studio in 2024. Your feedback is critical to help us make Visual Studio the best tool it can be! You can share feedback with us via <a href=\"https:\/\/developercommunity.visualstudio.com\/home%22%20\/t%20%22_blank\">Developer Community<\/a>: report any bugs or issues via <a href=\"https:\/\/learn.microsoft.com\/visualstudio\/ide\/how-to-report-a-problem-with-visual-studio?view=vs-2022\">report a problem<\/a> and <a href=\"https:\/\/developercommunity.microsoft.com\/VisualStudio\/suggest\">share your suggestions<\/a> for new features or improvements to existing ones.<\/p>\n<p>Stay connected with the Visual Studio team by following us on <a href=\"https:\/\/www.youtube.com\/@visualstudio\">YouTube<\/a>, <a href=\"https:\/\/twitter.com\/VisualStudio\">Twitter<\/a>, <a href=\"https:\/\/www.linkedin.com\/showcase\/microsoft-visual-studio\/\">LinkedIn<\/a>, <a href=\"https:\/\/www.twitch.tv\/visualstudio\">Twitch<\/a> and on <a href=\"https:\/\/learn.microsoft.com\/en-us\/visualstudio\/?view=vs-2022\">Microsoft Learn<\/a>.<\/p>\n<p>On behalf of the entire Visual Studio team, Happy Holidays, and Happy Coding!<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Welcome to the release of Visual Studio 2022 17.9 Preview 2, which wraps up our development efforts for 2023. This update brings new features and enhancements, building on the solid foundation set by Preview 1 in November.\u00a0 In this preview, we&#8217;ve made some improvements to the C++ and .NET MAUI development experiences. You&#8217;ll find the [&hellip;]<\/p>\n","protected":false},"author":1965,"featured_media":255385,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[155],"tags":[237,5,6815],"class_list":["post-246306","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-visual-studio","tag-net","tag-csharp","tag-visual-studio-2022"],"acf":[],"blog_post_summary":"<p>Welcome to the release of Visual Studio 2022 17.9 Preview 2, which wraps up our development efforts for 2023. This update brings new features and enhancements, building on the solid foundation set by Preview 1 in November.\u00a0 In this preview, we&#8217;ve made some improvements to the C++ and .NET MAUI development experiences. You&#8217;ll find the [&hellip;]<\/p>\n","_links":{"self":[{"href":"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-json\/wp\/v2\/posts\/246306","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\/1965"}],"replies":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-json\/wp\/v2\/comments?post=246306"}],"version-history":[{"count":0,"href":"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-json\/wp\/v2\/posts\/246306\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-json\/wp\/v2\/media\/255385"}],"wp:attachment":[{"href":"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-json\/wp\/v2\/media?parent=246306"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-json\/wp\/v2\/categories?post=246306"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-json\/wp\/v2\/tags?post=246306"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}