HotReloadKit is an extension tailored for C# .NET Core projects, delivering efficient hot reloading capabilities. Compatible with Visual Studio Code and Visual Studio 2022 for Mac and Windows, as well as .NET MAUI projects, it's a crucial tool utilized by Sharp.UI, a library simplifying .NET MAUI development with fluent methods solely in C# code.
using HotReloadKit;
class Program
{
static void Main(string[] args)
{
HotReloader.Init<Program>(HotReloadSupport.IdeIPs);
HotReloader.RequestAdditionalTypes = () => new string[] { "HotReloadExample.MyClass" };
HotReloader.UpdateApplication = dataList =>
{
foreach (var data in dataList)
Console.WriteLine($"{data.Type.FullName} isFromChangedFile: {data.IsFromChangedFile}");
};
Console.ReadLine();
}
}
Add it to your project
There is no official support. Use at your own risk.
Licensed under the MIT License. © 2023 Pawel Krzywdzinski
Enjoy!