Announcing the .NET MAUI extension for Visual Studio Code

0
355

[ad_1]

Last month, we launched the primary preview of C# Dev Kit, a light-weight, editor-first expertise that augments your C# improvement in Visual Studio Code with a Solution Explorer, native Test Explorer, AI-powered code authoring, and extra.

Today, we’re excited to announce the primary preview of the .NET MAUI extension, which, paired with C# Dev Kit, provides you the instruments it’s good to develop your cross-platform .NET cell and desktop apps with VS Code on Windows, macOS, and Linux.

You can check out the .NET MAUI extension right this moment – tell us what you assume!

Screens screenshot of a computer Description automatically generated

The .NET MAUI extension enables you to develop and debug your app on units, emulators, and simulators from VS Code. .NET MAUI and C# Dev Kit borrow some acquainted options from Visual Studio to boost your productiveness, making your cell and desktop improvement pleasant with C# in VS Code.

Code enhancing powered by Roslyn

C# enhancing is backed by the newly up to date open-source C# Extension, supplying you with highly effective IntelliSense code-completion. Along with the IntelliCode for C# Dev Kit extension, you get AI-assisted options similar to whole-line completions and starred solutions as you sort.

A dropdown in a C# text editor showing intelligent autocomplete suggestions from IntelliCode

When enhancing your XAML, you get light-weight syntax highlighting and autocomplete that learns out of your habits as you sort.

Debug to any goal

The .NET MAUI extension makes it simple to debug and deploy your app to your completely different goal units (Android, iOS, macOS and Windows). Just decide your gadget by the “Language Status” popup by hovering over the curly braces { }, deciding on “Debug Target”, then beginning a debug session (F5).

In this preview, we’ve added the next gadget targets:

  • On Windows, you possibly can debug to your native Windows machine, Android emulators, and Android units
  • On macOS, you possibly can debug regionally in your Mac, on iOS simulators or units, and Android emulators or units
  • On Linux, you possibly can debug to Android emulators and units

For extra data on what’s new with .NET MAUI tooling in Visual Studio, see the Visual Studio 17.6 launch weblog put up.

Getting began with .NET MAUI in VS Code is straightforward. Just set up the .NET MAUI extension, which routinely installs the C# Dev Kit and C# extensions for you. Log in with an current Visual Studio subscription, then open or create a .NET MAUI undertaking and begin coding! Or you possibly can observe the step-by-step walkthrough proper in VS Code:

A screenshot of the dot net maui extension walkthrough in visual studio code

Given C# Dev Kit and the .NET MAUI extensions construct on the identical foundations as Visual Studio for a few of its performance, it makes use of the identical license mannequin as Visual Studio. This means it’s free for people, in addition to academia and open-source improvement, the identical phrases that apply to Visual Studio Community. For organizations, the C# Dev Kit and its household of extensions are included with Visual Studio Professional and Enterprise subscriptions, in addition to GitHub Codespaces. For extra particulars see the license phrases.

This is just Preview 1, and we’ll constantly replace the extension and its options based mostly in your suggestions so we will ship a terrific expertise for everybody..

Please share your solutions and report points on this new expertise by VS Code’s Help > Report Issue dialog. Select whether or not it’s a bug, function request, or efficiency concern, then choose “An extension” and “.NET MAUI” within the following dropdowns.

A screenshot of the report issue dialog in visual studio code

You may see all of the solutions and points on each the .NET MAUI extension and C# Dev Kit at this GitHub repo. Thanks for making an attempt out this primary preview. We can’t wait to listen to what you assume!

More concerning the Visual Studio product household

Visual Studio continues to be our premier C# improvement device, supporting the total vary of .NET workloads and undertaking varieties. C# Dev Kit and the .NET MAUI extensions are thrilling steps for us to deliver .NET improvement productiveness to different elements of the Visual Studio product household. For extra data on the most recent options added to Visual Studio, try the Visual Studio 17.6 launch announcement.

LEAVE A REPLY

Please enter your comment!
Please enter your name here