{"id":249641,"date":"2024-07-02T09:00:45","date_gmt":"2024-07-02T16:00:45","guid":{"rendered":"https:\/\/devblogs.microsoft.com\/visualstudio\/?p=249641"},"modified":"2024-06-27T14:35:31","modified_gmt":"2024-06-27T21:35:31","slug":"dive-into-native-windows-development-with-new-winui-workload-and-template-improvements","status":"publish","type":"post","link":"https:\/\/devblogs.microsoft.com\/visualstudio\/dive-into-native-windows-development-with-new-winui-workload-and-template-improvements\/","title":{"rendered":"Dive into native Windows development with new WinUI workload and template improvements"},"content":{"rendered":"<p>At \/\/Build 2024, the WinUI team announced a renewed focus on WinUI as one of the premier app development frameworks we recommend for native Windows app development. To make it as seamless and easy as possible to get into coding, we created a new <a href=\"https:\/\/aka.ms\/windev\">Windows Dev Center page<\/a>, streamlined our <a href=\"https:\/\/learn.microsoft.com\/windows\/apps\/get-started\/start-here\">Getting Started with WinUI documentation<\/a>, and partnered with Visual Studio to improve the developer experience with workloads and templates. Today, we\u2019ll focus on showing you the great new changes in Visual Studio along with a little bit of our thought process behind them and links to learn more!<\/p>\n<p><a href=\"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-content\/uploads\/sites\/4\/2024\/06\/installation_no_cpp_light.png\"><img decoding=\"async\" class=\"aligncenter wp-image-249642 size-full\" src=\"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-content\/uploads\/sites\/4\/2024\/06\/installation_no_cpp_light.png\" alt=\"Windows application development workload with C# only\" width=\"1329\" height=\"812\" srcset=\"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-content\/uploads\/sites\/4\/2024\/06\/installation_no_cpp_light.png 1329w, https:\/\/devblogs.microsoft.com\/visualstudio\/wp-content\/uploads\/sites\/4\/2024\/06\/installation_no_cpp_light-300x183.png 300w, https:\/\/devblogs.microsoft.com\/visualstudio\/wp-content\/uploads\/sites\/4\/2024\/06\/installation_no_cpp_light-1024x626.png 1024w, https:\/\/devblogs.microsoft.com\/visualstudio\/wp-content\/uploads\/sites\/4\/2024\/06\/installation_no_cpp_light-768x469.png 768w\" sizes=\"(max-width: 1329px) 100vw, 1329px\" \/><\/a><\/p>\n<h2>Getting started with the new workload<\/h2>\n<p>In Visual Studio 17.10, the new \u201cWindows application development\u201d workload is now available for developers to jump right in and get started with writing stylish, modern, and fast WinUI apps using .NET or C++ with only one click. This workload replaces the older \u201cUniversal Windows Platform development\u201d workload with tools aimed at the latest generation of WinUI + the Windows App SDK. WinUI templates have also been given a fresh new icon and priority boost in the New Project template list, and they now include a new community-requested Unit Test template to help test WinUI apps more easily!<\/p>\n<p>To get started with the new workload, follow these easy steps:<\/p>\n<ol>\n<li>Open the Visual Studio Installer.<\/li>\n<li>Under Workloads &gt; Desktop &amp; Mobile, select the \u201cWindows application development\u201d workload.\n<ul>\n<li>If you\u2019re developing in C#, congrats, you\u2019re finished! The workload includes .NET WinUI app development tools by default.<\/li>\n<\/ul>\n<\/li>\n<li>If you\u2019d like to develop in C++ or if you need the tools for Universal Windows Development, select the optional \u201cC++ WinUI app development tools\u201d component. This will automatically select the Universal Windows Platform tools and C++ Universal Windows Platform tools components.<\/li>\n<\/ol>\n<p><a href=\"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-content\/uploads\/sites\/4\/2024\/06\/installation_with_cpp_light.png\"><img decoding=\"async\" class=\"aligncenter wp-image-249644 size-full\" src=\"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-content\/uploads\/sites\/4\/2024\/06\/installation_with_cpp_light.png\" alt=\"Windows application development workload with C++\" width=\"1329\" height=\"812\" srcset=\"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-content\/uploads\/sites\/4\/2024\/06\/installation_with_cpp_light.png 1329w, https:\/\/devblogs.microsoft.com\/visualstudio\/wp-content\/uploads\/sites\/4\/2024\/06\/installation_with_cpp_light-300x183.png 300w, https:\/\/devblogs.microsoft.com\/visualstudio\/wp-content\/uploads\/sites\/4\/2024\/06\/installation_with_cpp_light-1024x626.png 1024w, https:\/\/devblogs.microsoft.com\/visualstudio\/wp-content\/uploads\/sites\/4\/2024\/06\/installation_with_cpp_light-768x469.png 768w\" sizes=\"(max-width: 1329px) 100vw, 1329px\" \/><\/a><\/p>\n<p>That\u2019s it! In previous versions of Visual Studio, to develop with WinUI + the Windows App SDK you had to manually search for each required component in the list of optional components \u2013 and this was after reading the docs to find out what you needed! We also heard feedback that WinUI in the Windows App SDK, which represents the latest generation of WinUI that succeeds the Universal Windows Platform (UWP), was less prominent than its predecessor. With the new workload and components, we\u2019ve addressed this feedback to make the newest tools and APIs clear, front-and-center, and available with one click!<\/p>\n<h2>Take advantage of WinUI template improvements<\/h2>\n<p>Once you have the \u201cWindows application development\u201d workload installed, now it\u2019s time to start creating projects. We got some great feedback here on the New Project screen as well \u2013 the WinUI templates were far down the list, which made them seem less important than other templates, and they needed a fresh coat of paint. We heard you, so we bumped the most-used WinUI templates closer to the top and added a sparkly new icon!<\/p>\n<p>Go to File &gt; New Project to see these updates in action!<\/p>\n<p><a href=\"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-content\/uploads\/sites\/4\/2024\/06\/new_templates_light.png\"><img decoding=\"async\" class=\"aligncenter wp-image-249643 size-full\" src=\"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-content\/uploads\/sites\/4\/2024\/06\/new_templates_light.png\" alt=\"New WinUI templates and icons\" width=\"1578\" height=\"1392\" srcset=\"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-content\/uploads\/sites\/4\/2024\/06\/new_templates_light.png 1578w, https:\/\/devblogs.microsoft.com\/visualstudio\/wp-content\/uploads\/sites\/4\/2024\/06\/new_templates_light-300x265.png 300w, https:\/\/devblogs.microsoft.com\/visualstudio\/wp-content\/uploads\/sites\/4\/2024\/06\/new_templates_light-1024x903.png 1024w, https:\/\/devblogs.microsoft.com\/visualstudio\/wp-content\/uploads\/sites\/4\/2024\/06\/new_templates_light-768x677.png 768w, https:\/\/devblogs.microsoft.com\/visualstudio\/wp-content\/uploads\/sites\/4\/2024\/06\/new_templates_light-1536x1355.png 1536w\" sizes=\"(max-width: 1578px) 100vw, 1578px\" \/><\/a><\/p>\n<p>The rest of the templates aren\u2019t much farther down, either; on most monitors, you probably won\u2019t need to scroll to see them. In that list is one more addition we\u2019d love to highlight \u2013 the new Unit Test template for WinUI! This was directly requested by you, the WinUI developer community, and we\u2019re thrilled to introduce it alongside our other improvements to the WinUI workload and template experience.<\/p>\n<h2>Conclusion<\/h2>\n<p>We wanted to thank you again for all your for you. You\u2019re helping to make it easier for new WinUI developers to embrace native app development on Windows and helping us produce the best native app development experience on Windows that we can.<\/p>\n<p>To give us feedback on the platform directly, visit us on <a href=\"https:\/\/github.com\/microsoft\/microsoft-ui-xaml\">GitHub<\/a>, or follow us on <a href=\"https:\/\/twitter.com\/WindowsUI\">Twitter<\/a> to stay up to date on releases and news.<\/p>\n<p>To learn more about WinUI and for more info on getting started, check out our new Windows Dev Center page at <a href=\"https:\/\/aka.ms\/windev\">https:\/\/aka.ms\/windev<\/a>.<\/p>\n<p><span style=\"font-size: 12pt;\">If you\u2019re interested in the full picture of what we talked about at \/\/Build 2024 beyond our Visual Studio updates, check out these two sessions:<\/span><\/p>\n<ul>\n<li><span style=\"font-size: 12pt;\"><a href=\"https:\/\/www.youtube.com\/watch?v=ZjaL3pL-OuM\">Navigating Win32 App Development with WinUI and WPF | BRK241 (youtube.com)<\/a><\/span><\/li>\n<li><span style=\"font-size: 12pt;\"><a href=\"https:\/\/www.youtube.com\/watch?v=WR4T24lLoVo\">How to create superior experiences with WinUI and WPF | BRK244 (youtube.com)<\/a><\/span><\/li>\n<\/ul>\n<p>We appreciate the time you\u2019ve spent reporting issues\/suggestions and hope you continue to give us feedback when using Visual Studio on what you like and what we can improve. Your feedback is critical to help us make Visual Studio the best tool it can be! You can share feedback with us via\u00a0<a href=\"https:\/\/developercommunity.visualstudio.com\/home%22%20\/t%20%22_blank\">Developer Community<\/a>: report any bugs or issues via\u00a0<a href=\"https:\/\/learn.microsoft.com\/visualstudio\/ide\/how-to-report-a-problem-with-visual-studio?view=vs-2022\">report a problem<\/a>\u00a0and\u00a0<a href=\"https:\/\/developercommunity.microsoft.com\/VisualStudio\/suggest\">share your suggestions<\/a>\u00a0for 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","protected":false},"excerpt":{"rendered":"<p>At \/\/Build 2024, the WinUI team announced a renewed focus on WinUI as one of the premier app development frameworks we recommend for native Windows app development. To make it as seamless and easy as possible to get into coding, we created a new Windows Dev Center page, streamlined our Getting Started with WinUI documentation, [&hellip;]<\/p>\n","protected":false},"author":163080,"featured_media":249642,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[155],"tags":[237,6956,6955,6954],"class_list":["post-249641","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-visual-studio","tag-net","tag-windows-app-sdk","tag-windows-application-development","tag-winui"],"acf":[],"blog_post_summary":"<p>At \/\/Build 2024, the WinUI team announced a renewed focus on WinUI as one of the premier app development frameworks we recommend for native Windows app development. To make it as seamless and easy as possible to get into coding, we created a new Windows Dev Center page, streamlined our Getting Started with WinUI documentation, [&hellip;]<\/p>\n","_links":{"self":[{"href":"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-json\/wp\/v2\/posts\/249641","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\/163080"}],"replies":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-json\/wp\/v2\/comments?post=249641"}],"version-history":[{"count":0,"href":"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-json\/wp\/v2\/posts\/249641\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-json\/wp\/v2\/media\/249642"}],"wp:attachment":[{"href":"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-json\/wp\/v2\/media?parent=249641"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-json\/wp\/v2\/categories?post=249641"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-json\/wp\/v2\/tags?post=249641"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}