.NET MAUI VS Code Extension Now Generally Available
Written by Mike James   
Monday, 17 June 2024

Microsoft has announced that .NET MAUI VS Code extension is out of preview, and that it includes long-awaited new features – including XAML IntelliSense and Hot Reload.

The .NET Multi-platform App UI (MAUI) is a framework for building native device applications spanning mobile, tablet, and desktop. It allows developers to create a single project that works on multiple targets. Any platform-specific assets are placed in sub-folders, and the developer can focus on writing shared UI and code. The .NET MAUI extension for VS Code was announced last year, indicating that it pairs with the C# Dev Kit to extend the range of projects you can create to include .NET MAUI apps.

net2

XAML, Extensible Application Markup Language, is Microsoft's XML-based language used for initializing structured values and objects. In the preview version of the .NET MAUI extension developers got basic XAML syntax highlighting and completions. This has been improved by swapping to an updated version of the XAML Language Service in Visual Studio that has been packaged for use in VS Code. Maddy Montaquila, senior program manager for .NET MAUI, said in a blog post that

"the addition, which also works with Copilot, gives you intelligent autocomplete, helpful tooltips, and seamless code navigation while you create your UIs."

The other main improvement over the preview is the incorporation of Hot Reload, which lets you edit your code without restarting your app.

hot reload in .NET MAUI VS Code Extension

The feature means you can now Hot Reload edits to your C# and XAML files in Visual Studio Code. Hot Reload is enabled for XAML but the blog post says

"C# Hot Reload is still in an experimental state, but you can turn it on"

which sounds less finished.

The reception of the extension is likely to vary depending on what environment you're working in. There's still no support for Linux; and while VS Code is Microsoft's official successor to Visual Studio Mac now that has been discontinued, reviews from early testers have been mixed, many pointing out that the MAUI extension also needs the C# Dev Kit, only available with a Visual Studio license.

The .NET MAUI VS Code Extension is available now. 

net2

  • Mike James is the author of Deep C#: Dive Into Modern C#,  in which he provides a “deep dive” into various topics that are important or central to the language. By exploring the motivation behind these key concepts, which is so often ignored in the documentation, the intention is to be thought-provoking and to give developers confidence to exploit C#’s wide range of features.

More Information

MAUI VS Code Extension On Marketplace

MAUI On GitHub

Related Articles

NET MAUI Comes to VS Code

MAUI Now Available For .NET 7

.NET MAUI Reaches General Availability

.NET MAUI Adds New Layouts

Microsoft Will Replace Xamarin Forms With MAUI .NET

.NET 6 Preview Adds MAUI

To be informed about new articles on I Programmer, sign up for our weekly newsletter, subscribe to the RSS feed and follow us on Twitter, Facebook or Linkedin.

Banner


CSS Ecosystem In the Spotlight
06/11/2024

The 2024 edition of the State of CSS has been posted, revealing that the latest features of the language not only do away with extra tooling, but even start taking on tasks that previously requir [ ... ]



AI Propels Python To Top Language on GitHub
30/10/2024

This year's Octoverse Report reveals how AI is expanding on GitHub and that Python has now overtaken JavaScript as the most popular language on GitHub. The use of Jupyter Notebooks has also surged.


More News

espbook

 

Comments




or email your comment to: comments@i-programmer.info

Last Updated ( Monday, 17 June 2024 )