Skip to content

A Visual Studio Code and Visual Studio 2022 extension for C# projects, offering hot reloading capabilities

License

Notifications You must be signed in to change notification settings

idexus/HotReloadKit

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

93 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

HotReloadKit

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.

Hot Reload Support

Simple Usage

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();
    }
} 

VS extensions

Nuget package

Add it to your project

Disclaimer

There is no official support. Use at your own risk.

License

Licensed under the MIT License. © 2023 Pawel Krzywdzinski

Enjoy!

About

A Visual Studio Code and Visual Studio 2022 extension for C# projects, offering hot reloading capabilities

Resources

License

Stars

Watchers

Forks

Packages

No packages published