Skip to content

Repository files navigation

Overview

 The .NET Meteor extension allows you to build, debug and deploy .NET MAUI apps to devices or emulators. The extension provides you with a XAML intellisense and XAML Hot Reload for any platform. See the instruction below to enable Hot Reload in your project.

Limitations

  • .NET 10+ (CoreCLR) only
    Starting with version 10, the extension targets .NET MAUI on .NET 10+ running on the CoreCLR runtime. If your project still uses the Mono runtime, install .NET Meteor 6.x, the last release line with Mono support.

  • Requires the DotRush extension
    This version requires the DotRush extension — a Roslyn-based language server that provides better integration with the project system, IntelliSense, and other C# editor features. It is listed as an extension dependency, so VSCode will install it automatically alongside .NET Meteor.

Run the Application

  1. Open the project folder.
  2. Open the Run and Debug VSCode tab and click the create a launch.json file.
  3. In the opened panel, select the .NET Meteor Debugger.
  4. In the status bar, select a configuration (debug/release + target framework).
  5. Right-click your project file or folder and select Set as Startup Project if your workspace contains more than one project.
  6. In the status bar, click the device name and select a target device/emulator from the opened panel.
  7. Press F5 to debug the application or ctrl + F5 to launch the application without debugging.

image

Enable XAML Hot Reload

  1. Open the .csproj file of your project and add the following package reference:
<ItemGroup>
	<PackageReference Include="DotNetMeteor.HotReload.Plugin" Version="3.*"/>
</ItemGroup>
  1. Enable Hot Reload Server in your MauiProgram.cs:
using DotNet.Meteor.HotReload.Plugin;

public static class MauiProgram
{
    public static MauiApp CreateMauiApp()
    {
        var builder = MauiApp.CreateBuilder();
        builder
            .UseMauiApp<App>()
#if DEBUG
            .EnableHotReload()
#endif
        ...
        return builder.Build();
    }
}
  1. Now you can run your project, update XAML and see updates in real-time!

image

About

A VSCode extension that can run and debug .NET MAUI apps

Topics

Resources

Stars

379 stars

Watchers

8 watching

Forks

Releases

Used by

Contributors

Languages