{"id":238900,"date":"2022-08-09T12:08:03","date_gmt":"2022-08-09T19:08:03","guid":{"rendered":"https:\/\/devblogs.microsoft.com\/visualstudio\/?p=238900"},"modified":"2022-08-09T12:16:43","modified_gmt":"2022-08-09T19:16:43","slug":"visual-studio-for-mac-17-3-is-now-available","status":"publish","type":"post","link":"https:\/\/devblogs.microsoft.com\/visualstudio\/visual-studio-for-mac-17-3-is-now-available\/","title":{"rendered":"Visual Studio for Mac 17.3 is now available"},"content":{"rendered":"<p>Today we released Visual Studio for Mac v17.3. This release includes User Secrets support, several new code fixes, Apple Developer Accounts, adds Task Window and Regular Expressions dialog implemented in native UI, and fixes for top reported user issues. We&#8217;re also releasing our first preview of Visual Studio for Mac 17.4, with <a href=\"https:\/\/devblogs.microsoft.com\/dotnet\/dotnet-maui-visualstudio-2022-release\/#in-preview-now-visual-studio-for-mac-support\">preview support for\u00a0.NET Multi-platform App UI<\/a>.<\/p>\n<p>To update now, use the <strong>Visual Studio &gt; Check for Updates\u2026<\/strong> menu in the IDE. If you aren\u2019t using it yet, download it now:<\/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\/mac\/\" target=\"_blank\">Download Visual Studio 2022 for Mac v17.3<\/a><\/div><\/p>\n<p>This blog post summarizes the top changes in this release. You can check out the <a href=\"https:\/\/docs.microsoft.com\/visualstudio\/releases\/2022\/mac-release-notes\">release notes<\/a> to learn about all of the changes we\u2019ve made.<\/p>\n<p><em>Note: There are no 17.1 or 17.2 versions of Visual Studio 2022 for Mac. The minor version number was changed to 17.3 in order to match the version number of Visual Studio (on Windows) and address feedback that it\u2019s confusing to have different sets of version numbers between products.<\/em><\/p>\n<h2>.NET Developer Productivity<\/h2>\n<h2>User Secrets support<\/h2>\n<p>This release of Visual Studio for Mac includes support for the User Secrets manager. The <a href=\"https:\/\/docs.microsoft.com\/aspnet\/core\/security\/app-secrets?view=aspnetcore-6.0&amp;tabs=windows#secret-manager\">Secret Manager<\/a> is a recommended practice for storing sensitive information such as API keys, passwords, and database connections during development. The information is stored in a JSON file outside of your project path, so you won\u2019t accidentally check the information into a public repository.<\/p>\n<p><img decoding=\"async\" class=\"wp-image-238976 alignnone\" src=\"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-content\/uploads\/sites\/4\/2022\/08\/word-image-238900-1.png\" alt=\"Screenshot of Visual Studio for Mac showing the &quot;Manage User Secrets&quot; context menu item.\" width=\"436\" height=\"386\" srcset=\"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-content\/uploads\/sites\/4\/2022\/08\/word-image-238900-1.png 436w, https:\/\/devblogs.microsoft.com\/visualstudio\/wp-content\/uploads\/sites\/4\/2022\/08\/word-image-238900-1-300x266.png 300w\" sizes=\"(max-width: 436px) 100vw, 436px\" \/><\/p>\n<h2>Be more productive with new code fixes<\/h2>\n<p>We\u2019ve introduced several new code fixes that will improve your coding experience. Let\u2019s take a look at a few of them, starting with a new code fix for invalid constraints.<\/p>\n<p><img decoding=\"async\" class=\"alignnone wp-image-238977\" src=\"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-content\/uploads\/sites\/4\/2022\/08\/word-image-238900-2.png\" alt=\"Screenshot of Visual Studio for Mac showing a code fix for a type constraint for type enum, suggesting &quot;struct, System.Enum&quot; instead.\" width=\"1101\" height=\"337\" srcset=\"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-content\/uploads\/sites\/4\/2022\/08\/word-image-238900-2.png 1101w, https:\/\/devblogs.microsoft.com\/visualstudio\/wp-content\/uploads\/sites\/4\/2022\/08\/word-image-238900-2-300x92.png 300w, https:\/\/devblogs.microsoft.com\/visualstudio\/wp-content\/uploads\/sites\/4\/2022\/08\/word-image-238900-2-1024x313.png 1024w, https:\/\/devblogs.microsoft.com\/visualstudio\/wp-content\/uploads\/sites\/4\/2022\/08\/word-image-238900-2-768x235.png 768w\" sizes=\"(max-width: 1101px) 100vw, 1101px\" \/><\/p>\n<p>There\u2019s also a new refactoring that allows you to switch between <a href=\"https:\/\/docs.microsoft.com\/dotnet\/csharp\/whats-new\/tutorials\/top-level-statements\">top-level statements<\/a> and the Program.Main style.<\/p>\n<p><img decoding=\"async\" class=\"alignnone wp-image-238978\" src=\"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-content\/uploads\/sites\/4\/2022\/08\/word-image-238900-3.png\" alt=\"Screenshot of Visual Studio for Mac showing a code fix to convert a one line console app written as a top level statement to a Program.Main style.\" width=\"1101\" height=\"424\" srcset=\"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-content\/uploads\/sites\/4\/2022\/08\/word-image-238900-3.png 1101w, https:\/\/devblogs.microsoft.com\/visualstudio\/wp-content\/uploads\/sites\/4\/2022\/08\/word-image-238900-3-300x116.png 300w, https:\/\/devblogs.microsoft.com\/visualstudio\/wp-content\/uploads\/sites\/4\/2022\/08\/word-image-238900-3-1024x394.png 1024w, https:\/\/devblogs.microsoft.com\/visualstudio\/wp-content\/uploads\/sites\/4\/2022\/08\/word-image-238900-3-768x296.png 768w\" sizes=\"(max-width: 1101px) 100vw, 1101px\" \/><\/p>\n<p>.NET has a new attribute called the <a href=\"https:\/\/github.com\/dotnet\/runtime\/issues\/62505\">StringSyntaxAttribute<\/a> which allows you to tell the compiler what kind of data a string represents such as JSON, Regex, or DateTime. Visual Studio for Mac now supports syntax highlighting based on the type of data that the string represents.<\/p>\n<p><img decoding=\"async\" class=\"alignnone wp-image-238979\" src=\"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-content\/uploads\/sites\/4\/2022\/08\/word-image-238900-4.png\" alt=\"Screenshot of a code sample which includes a regular expression string. The regular expression has syntax highlighting and is displaying Intellisense for regular expression syntax.\" width=\"1100\" height=\"181\" srcset=\"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-content\/uploads\/sites\/4\/2022\/08\/word-image-238900-4.png 1100w, https:\/\/devblogs.microsoft.com\/visualstudio\/wp-content\/uploads\/sites\/4\/2022\/08\/word-image-238900-4-300x49.png 300w, https:\/\/devblogs.microsoft.com\/visualstudio\/wp-content\/uploads\/sites\/4\/2022\/08\/word-image-238900-4-1024x168.png 1024w, https:\/\/devblogs.microsoft.com\/visualstudio\/wp-content\/uploads\/sites\/4\/2022\/08\/word-image-238900-4-768x126.png 768w\" sizes=\"(max-width: 1100px) 100vw, 1100px\" \/><\/p>\n<p>Here\u2019s an example showing syntax highlighting for a JSON string:<\/p>\n<p><img decoding=\"async\" class=\"alignnone wp-image-238980\" src=\"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-content\/uploads\/sites\/4\/2022\/08\/word-image-238900-5.png\" alt=\"Screenshot of a code sample which includes a JSON string. The string has syntax highlighting.\" width=\"1100\" height=\"69\" srcset=\"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-content\/uploads\/sites\/4\/2022\/08\/word-image-238900-5.png 1100w, https:\/\/devblogs.microsoft.com\/visualstudio\/wp-content\/uploads\/sites\/4\/2022\/08\/word-image-238900-5-300x19.png 300w, https:\/\/devblogs.microsoft.com\/visualstudio\/wp-content\/uploads\/sites\/4\/2022\/08\/word-image-238900-5-1024x64.png 1024w, https:\/\/devblogs.microsoft.com\/visualstudio\/wp-content\/uploads\/sites\/4\/2022\/08\/word-image-238900-5-768x48.png 768w\" sizes=\"(max-width: 1100px) 100vw, 1100px\" \/><\/p>\n<h2>Task Window and Regular Expressions dialog updated to native UI<\/h2>\n<p>We\u2019ve updated the Task Window and Regular Expressions dialog to native UI, which provides better integration with macOS and improved accessibility support. The Task Window was removed in 17.0 while awaiting the migration to native UI, and we\u2019re happy to add it back in this release.<\/p>\n<h2>Apple Developer Accounts<\/h2>\n<p>This release includes initial support for Individual <a href=\"https:\/\/developer.apple.com\/support\/app-store-connect\/\">AppStoreConnect accounts<\/a> which are needed for non-Enterprise Apple Developers.<\/p>\n<p>To add an AppStoreConnect account, open Visual Studio for Mac\/Preferences and then select the &#8220;Apple Developer Accounts&#8221; item. In the &#8220;Apple Developer Accounts&#8221;, click the &#8220;Add Account&#8221; button and select &#8220;Add Individual Account&#8221; and enter the AppStoreConnect API Key information. Once the account is created, certificates and provisioning profiles can be accessed via the &#8220;View Details&#8221; button.<\/p>\n<p>&nbsp;<\/p>\n<h2>Visual Studio for Mac 17.4 Preview 1 is now available<\/h2>\n<p>Today, we\u2019re also shipping the first preview of our next release \u2013 Visual Studio 2022 for Mac v17.4. You can install this release side-by-side with the v17.3 release \u2013 if you already have a preview version of Visual Studio for Mac on your machine, you can use the\u00a0<strong>Visual Studio &gt; Check for Updates\u2026<\/strong>\u00a0menu to update to this next preview as well. You can also install it using the preview installer:<\/p>\n<p><div  class=\"d-flex justify-content-center\"><a class=\"cta_button_link btn-primary mb-24\" href=\"https:\/\/aka.ms\/installer\/preview\" target=\"_blank\">Download Visual Studio 2022 for Mac v17.4 Preview 1<\/a><\/div><\/p>\n<p>In this first preview, we\u2019re including the following features:<\/p>\n<h2>Preview support for MAUI &amp; Xamarin<\/h2>\n<p>The 17.4 Preview 1 release improves our preview support for .NET Multi-platform App UI, enabling you to build, deploy, and debug .NET MAUI apps on iOS, macOS, and Android. This release includes XAML Hot Reload support for changing your UI and seeing the changes reflected in your running app.<\/p>\n<p><em>Note: If you don&#8217;t already have .NET MAUI installed, you will have to redownload the\u00a0<\/em><a href=\"https:\/\/visualstudio.microsoft.com\/vs\/mac\/preview\/\">Preview installer<\/a><em> and select &#8220;.NET MAUI&#8221;. Once .NET MAUI is installed, you can find and create .NET MAUI apps from the templates.<\/em><\/p>\n<h2>Minimal API Scaffolder support<\/h2>\n<p>We\u2019ve added support for the new scaffolder for ASP.NET Core Minimal APIs. This lets you quickly generate API Endpoints from a model class, with OpenAPI support and Entity Framework queries.<\/p>\n<p><img decoding=\"async\" class=\"alignnone wp-image-238981\" src=\"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-content\/uploads\/sites\/4\/2022\/08\/image.png\" alt=\"Screenshot of the Visual Studio for Mac &quot;Add New Scaffolding&quot; dialog, showing the &quot;API with read \/ write endpoints&quot; option selected.\" width=\"735\" height=\"625\" srcset=\"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-content\/uploads\/sites\/4\/2022\/08\/image.png 735w, https:\/\/devblogs.microsoft.com\/visualstudio\/wp-content\/uploads\/sites\/4\/2022\/08\/image-300x255.png 300w\" sizes=\"(max-width: 735px) 100vw, 735px\" \/><\/p>\n<p><img decoding=\"async\" class=\"alignnone wp-image-238982\" src=\"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-content\/uploads\/sites\/4\/2022\/08\/image-1.png\" alt=\"Screenshot of Visual Studio for Mac's Add New Scaffolding dialog, showing the &quot;API with read \/ write endpoints, using Entity Framework&quot; option.\" width=\"488\" height=\"322\" srcset=\"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-content\/uploads\/sites\/4\/2022\/08\/image-1.png 488w, https:\/\/devblogs.microsoft.com\/visualstudio\/wp-content\/uploads\/sites\/4\/2022\/08\/image-1-300x198.png 300w\" sizes=\"(max-width: 488px) 100vw, 488px\" \/><\/p>\n<h2>Modules View in Debugger Pad<\/h2>\n<p>During Visual Studio debugging, the new Modules window lists and shows information about the DLLs and executables (.exe files) your app uses.<\/p>\n<p><img decoding=\"async\" class=\"alignnone wp-image-238983\" src=\"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-content\/uploads\/sites\/4\/2022\/08\/word-image-238900-8.png\" alt=\"Screenshot of Visual Studio for Mac showing the Modules Window.\" width=\"1429\" height=\"215\" srcset=\"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-content\/uploads\/sites\/4\/2022\/08\/word-image-238900-8.png 1429w, https:\/\/devblogs.microsoft.com\/visualstudio\/wp-content\/uploads\/sites\/4\/2022\/08\/word-image-238900-8-300x45.png 300w, https:\/\/devblogs.microsoft.com\/visualstudio\/wp-content\/uploads\/sites\/4\/2022\/08\/word-image-238900-8-1024x154.png 1024w, https:\/\/devblogs.microsoft.com\/visualstudio\/wp-content\/uploads\/sites\/4\/2022\/08\/word-image-238900-8-768x116.png 768w\" sizes=\"(max-width: 1429px) 100vw, 1429px\" \/><\/p>\n<h2>Please keep sharing your feedback<\/h2>\n<p>Please continue to share your thoughts and keep sending those\u00a0<a href=\"https:\/\/aka.ms\/vsmac-suggestion\" target=\"_blank\" rel=\"noopener\">suggestions<\/a>\u00a0or\u00a0<a href=\"https:\/\/developercommunity.visualstudio.com\/report?space=41&amp;entry=problem\" target=\"_blank\" rel=\"noopener\">problem reports<\/a>! You can use the\u00a0<strong>Help &gt; Report a Problem<\/strong>\u00a0or\u00a0<strong>Help &gt; Provide a Suggestion<\/strong>\u00a0menus to share feedback, or go to the\u00a0<a href=\"https:\/\/developercommunity.visualstudio.com\/search?space=41&amp;stateGroup=active&quot; \\t &quot;_blank\">Visual Studio for Mac Developer Community<\/a>\u00a0site to vote for your favorites.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Today we released Visual Studio for Mac v17.3. This release includes User Secrets support, several new code fixes, Apple Developer Accounts, adds Task Window and Regular Expressions dialog implemented in native UI, and fixes for top reported user issues. We&#8217;re also releasing our first preview of Visual Studio for Mac 17.4, with preview support for\u00a0.NET [&hellip;]<\/p>\n","protected":false},"author":470,"featured_media":238456,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[155],"tags":[6820,452],"class_list":["post-238900","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-visual-studio","tag-visual-studio-2022-for-mac","tag-visual-studio-for-mac"],"acf":[],"blog_post_summary":"<p>Today we released Visual Studio for Mac v17.3. This release includes User Secrets support, several new code fixes, Apple Developer Accounts, adds Task Window and Regular Expressions dialog implemented in native UI, and fixes for top reported user issues. We&#8217;re also releasing our first preview of Visual Studio for Mac 17.4, with preview support for\u00a0.NET [&hellip;]<\/p>\n","_links":{"self":[{"href":"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-json\/wp\/v2\/posts\/238900","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\/470"}],"replies":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-json\/wp\/v2\/comments?post=238900"}],"version-history":[{"count":0,"href":"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-json\/wp\/v2\/posts\/238900\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-json\/wp\/v2\/media\/238456"}],"wp:attachment":[{"href":"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-json\/wp\/v2\/media?parent=238900"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-json\/wp\/v2\/categories?post=238900"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-json\/wp\/v2\/tags?post=238900"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}