News

Visual Studio for Mac 17.4 Ships with .NET MAUI Support

Visual Studio for Mac v17.4 shipped earlier this month along with its Windows counterpart, with support for .NET MAUI heading a host of improvements.

.NET MAUI is Microsoft's evolution of Xamarin.Forms, adding the ability to create desktop apps along with traditional iOS and Android mobile targets associated with Xamarin.

The project shipped quite late, though it did make it into the Nov. 8 debuts of .NET 7 and Visual Studio 2022 v17.4 for Windows, albeit with many developer concerns about it possibly shipping too early, with half-baked functionality.

Today (Nov. 22), Microsoft reminded developers that many of the same .NET MAUI productivity features available in the Windows version also made it into the GA release of the Mac version. The latter incorporates the latest quality and reliability improvements for the .NET MAUI SDK as part of .NET 7, which also shipped this month.

For example, single project support and debugging functionality was applied to Android/iOS/Mac Catalyst platforms.

"With .NET MAUI single project, you don't need to stress about resource management across platforms!" Microsoft said. ".NET MAUI single project is an abstraction of platform specific development experiences and tools in one single shared project that can target Android, iOS and Mac from your Mac machine. If you have a Windows machine, you can also build the same app for Windows!"

Hello World!
[Click on image for larger view.] Hello World! (source: Microsoft).

That lets developers have shared resource files within a single project or a single cross-platform app entry point, as well as providing a simplified debug target selection for running .NET MAUI apps.

"With .NET MAUI single project, you have the ease of a single optimized development experience while still having access to all platform specific experiences and APIs across multiple platforms and devices you are targeting," Microsoft said.

While the company seemed to imply that not all of the Windows .NET MAUI features might be available in the Mac edition, it did note that visual design tooling including XAML Hot Reload and Live Visual Tree was available. XAML Hot Reload lets developers see the UI changes real time in a running app as XAML code is tweaked, while Live Visual Tree lets them see a real-time view of their running XAML code, structured as a tree view of the hierarchy of all UI elements in the running app.

Version 17.4 also supports Apple's XCode 14 IDE and Microsoft's .NET 7, which unified all disparate dev tooling into "just one .NET going forward."

An earlier blog post about v17.4 details other new features and functionality, including UI improvements and customizable configuration to help developers find things quicker by adjusting line spacing, for example.

"We've added the ability to restart the current application during debugging, reducing the clicks necessary to get back into your debugging session," Microsoft said. "You can access this feature from the debugging toolbar."

In noting the ability for developers to use the latest programming language features, Microsoft also explained more about .NET MAUI bits in the Mac edition.

"We've made investments in the project system to help you create more code the way you want to," the company said. "You'll find .NET 7 support for Azure Functions and MAUI as well as support for archiving and publishing your MAUI apps.

"We've also added support so you can bind your MAUI app to native iOS libraries and edit your project properties."

More details on all of the above and much more can be found in the release notes and GitHub repo.

About the Author

David Ramel is an editor and writer at Converge 360.

comments powered by Disqus

Featured

  • Compare New GitHub Copilot Free Plan for Visual Studio/VS Code to Paid Plans

    The free plan restricts the number of completions, chat requests and access to AI models, being suitable for occasional users and small projects.

  • Diving Deep into .NET MAUI

    Ever since someone figured out that fiddling bits results in source code, developers have sought one codebase for all types of apps on all platforms, with Microsoft's latest attempt to further that effort being .NET MAUI.

  • Copilot AI Boosts Abound in New VS Code v1.96

    Microsoft improved on its new "Copilot Edit" functionality in the latest release of Visual Studio Code, v1.96, its open-source based code editor that has become the most popular in the world according to many surveys.

  • AdaBoost Regression Using C#

    Dr. James McCaffrey from Microsoft Research presents a complete end-to-end demonstration of the AdaBoost.R2 algorithm for regression problems (where the goal is to predict a single numeric value). The implementation follows the original source research paper closely, so you can use it as a guide for customization for specific scenarios.

  • Versioning and Documenting ASP.NET Core Services

    Building an API with ASP.NET Core is only half the job. If your API is going to live more than one release cycle, you're going to need to version it. If you have other people building clients for it, you're going to need to document it.

Subscribe on YouTube