Visual Studio 2022 for Mac Preview 3 teases M1 native processor support – Visual Studio Magazine


Visual Studio 2022 for Mac Preview 3 teases M1 native processor support

In announcing Visual Studio 2022 for Mac Preview 3, Microsoft announced upcoming support for Apple M1 processors and announced expected general availability time.

Native Apple M1 ARM processor support is one of the top requests on the community site and we’ll get to that in future drafts, ”Jordan Matthiesen, Senior Program Manager, Visual Studio for Mac, said in a November 8 blog. Publish.

Indeed, this message from the Microsoft developer community is dated December 15, 2020 and has garnered 14 comments and 120 votes.

The article notes that the VS for Mac development team planned to add support in two stages, first with a Rosetta translation layer and then with native support, which it says would require further development.

This week Matthiesen explained how the team is progressing in this second stage. “To enable this support, we will be moving the IDE to run on the .NET 6 Common Language Runtime (CLR). This is a major architectural change that brings improvements for all of our users. on Intel and M1 processors. In our first in lab testing, we’re already seeing performance improvements, with bulky solutions loading in half the time than they needed in version 8.10. ”

VS 2022 for Mac
[Click on image for larger view.] VS 2022 for Mac (source: Microsoft).

It also provided a release date for VS for Mac, which has lagged behind the Windows IDE in its development cycle. While the latter has already progressed through four previews and two candidate versions before reaching general availability this week, VS for Mac is in Preview 3, although it has been put to the test by some 4,000. developers at a private preview. As such, VS for Mac will debut in the first half of next year – no more specific timeline is provided.

“The decision on the final release date will be based on feedback from all of you,” said Matthiesen. “This is a major update to the UI and base IDE architecture, and we want to make sure it’s in top shape. As we work towards this goal, we’ll update you along the way and share a Release Candidate (RC) as the final date approaches. Until then, you can continue to use Visual Studio 2019 for Mac v8.10 to build your applications with .NET 5, Xamarin, Unity, or .NET Core 3.1. ”

This major update involves moving the IDE to a fully native macOS user interface, which is now about 75 percent done. Matthiesen explained that in the new Visual Studio 2022 for Mac, all UI will come from using macOS Cocoa APIs, so native UI components of the operating system are used in an app. In the previous diagram, part of the VSMac user interface was custom-designed using different user interface technologies, without taking advantage of the operating system’s native style or event model. Regarding progress on this front in this preview: “This release has focused on moving the Git Manage Branches dialog, the Preferences> NuGet screens, and a set of code formatting preferences and options. project. ”

Other new features and functionality new in Preview 3 include support for the latest version of .NET 6 on Mac, including C # 10 language features, so you’re all set to build apps for the web and the cloud. , as well as terminal-based console applications. .

Other improvements include subword navigation, which means moving the cursor (via Ctrl + Alt + Left / Right Arrow) over a string such as “CatalogBaseUrl” would stop at the uppercase characters C, B and U which lead to the Catalog, Base and Url sub-words.

For visual learners this means this:

Navigating subwords in the C # editor in the animated action
[Click on image for larger, animated GIF view.] Navigating subwords in the C # editor in the animated action (source: Microsoft).

New code fixes and refactorings, meanwhile, include:

  • Convert to namespace at file scope
  • Prefer null verification to type verification
  • Simplify the LINQ expression
  • The new Quick Actions and Refactorings menu in Visual Studio for Mac
    [Click on image for larger view.] The new Quick Actions and Refactorings menu in Visual Studio for Mac (source: Microsoft).

Other improvements to the editor include:

  • Language specific settings can now be controlled with the Visual Studio> Preferences …> Behavior migrated to native user interface panes.
  • NuGet package sources can be configured using Visual Studio> Preferences …> NuGet settings.
  • Fixed a delay when opening a file for the first time, where only 9 lines of text were displayed for a short time until the rest of the file loaded.
  • C # 10 can now be selected as the target language in the project options.

All of the above and more are covered in more detail in the overview release notes.

In the future, the VS 2022 Roadmap for Mac shows these main themes:

  • Fast and smooth, for everyone: We’re moving Visual Studio for Mac to the native macOS user interface, which will fix over 100 previously reported issues regarding performance, reliability, affordability, and product quality.
  • A modern .NET IDE for Mac: Experience a new look in Visual Studio for Mac that combines the modern macOS user interface with the productive experience you know and love in Visual Studio.
  • An experience familiar to Visual Studio users: We’re updating menus, terminology, and user experience in the IDE to make it easier for you to use your existing knowledge of Visual Studio running on Windows.

“Our goal with Visual Studio 2022 for Mac is to create a modern Mac-friendly .NET IDE that delivers the productive experience you love in Visual Studio,” the roadmap states. “We’re moving Visual Studio for Mac to the native macOS user interface, which means it will deliver better performance and reliability. It also means that Visual Studio for Mac can better take advantage of macOS ‘built-in accessibility features. We are updating the status bar, tabs, menus, and terminology throughout the IDE to make the experience of using Visual Studio for Mac more consistent with Windows. ”

Microsoft also has a website specifically for the new offering, aptly titled “Preview of Visual Studio 2022 for Mac. ”

About the Author

David Ramel is editor and writer for Converge360.

Comments are closed.