OYIon / LiveSharp

Public repository for the LiveSharp project
96 stars 4 forks source link

It's possible to use this on AvaloniaUI project? #116

Open markjackmilian opened 3 years ago

markjackmilian commented 3 years ago

I'm trying to use LiveSharp on AvaloniaUI project following the section "Custom hot reload" on docs with no luck. Has anyone found how to make it work?

thanks

ionoy commented 3 years ago

Can you show me the hot-reload code that you have come up with?

ionoy commented 3 years ago

By the way, do you mean XAML hot-reload or C#? Just UI or other code also?

markjackmilian commented 3 years ago

Hi, sorry for the late reply. I tried the update of both the XAML and the code, but without success. I can post the code I used, but I doubt it can be useful since I tried it in a random way :)

Thanks!

ionoy commented 3 years ago

There are some samples in https://www.livesharp.net/help/ that you can use as a starting point. But basically, all you need to do is intercept code updates and refresh the current page. Unfortunately, I don't know the internals of Avalonia, so it would be difficult for me to start from scratch. But I can guide you via Gitter or Discord.