LiveSharp

Hot Reload for Blazor, Xamarin Forms, UNO, and any other C# project!

LiveSharp is now free and open source. Please visit https://github.com/ionoy/LiveSharp if you want to build it yourself.

Update methods in realtime, without compilation

Use built-in hot-reload for Blazor, Xamarin.Forms and Uno platforms

Create custom hot-reload that will work for your specific application

Xamarin.Forms hot reload

Update ViewModel or Page code and see the changes immediately reflected in the app.

Instant Blazor hot reload

Update .razor and C# files, and see the updates instantly without reloading the page. Your page state is preserved because there is no need to restart the application.

ASP.NET Core support

You can update ASP.NET controllers and instantly see the updated behaviour in the browser. The update is very fast compared to dotnet watch that requires a full recompilation. Also, your session stays completely intact because there is no need to restart the app.

Any code update

No matter what application you are developing. As long as your framework supports .NET Standard 2.0, you can use LiveSharp to update the code in runtime.

You can even write customize the hot reload behavior, so it would suit your particular project.

LiveXAML is included by default

LiveSharp has a built-in XAML hot reload functionality provided by LiveXAML (www.livexaml.com)

  • Live debugger

    No need to set breakpoints and stop execution. Choose the method you want to debug, and see everything that happens inside of it while you run the application normally.

  • Cross platform. Cross IDE.

    LiveSharp works on Windows, Mac, and Linux. LiveSharp supports any editor that you like: Visual Studio, Rider, VS Code, or even notepad.exe

  • From Windows service to a Blazor application

    LiveSharp will update any application that is built with a modern .NET

  • Add logging in runtime

    Can’t figure out what’s going wrong? Now you can add Debug.WriteLine() anywhere you want and just hit Save. Next time the method is called, you will get some additional debugging info.

  • Save hours of time on QA deployment

    Now you can fix a bug in testing environment without redeploying the app. Just connect the live instance, fix the bug, and check the results.

Installation is super easy

1.

You need a server application running in the background for LiveSharp to work. The server also provides you with Live Debugging UI, logs and other useful functionality.

  1. Open terminal
  2. Install server dotnet tool install --global livesharp.server
  3. Run server livesharp

2.

To integrate LiveSharp into your app, you need a NuGet package installed in your main project along with other projects that require updates. For example, with Xamarin.Forms this would be a .NET Standard project.

install-package LiveSharp

Join our Gitter channel for realtime support and updates

FAQ

How do I disable LiveSharp for release builds?

Define LIVESHARP_DISABLE compilation symbol for release build configuration.

Do I need any code to initialize LiveSharp?

No, LiveSharp uses a build task that injects the initialization code.

My application doesn’t connect to the LiveSharp server, what do I do?

First of all, check the Output window in Visual Studio (or Rider) during the build. There can be some useful warnings from LiveSharp.

Secondly, make sure that both the application and your developer machine are in the same network.

Please contact me if you need help with creating a custom hot-reload solution for your specific project.

Menu