1

I'm creating an ios/android app with .Net Maui and can't get hot reload to work on any platform. Is this working for anyone?

I've tried installing and reinstalling and doesn't work.

Mac Mini Intel Ventura 13.0.1

Rider Version - 2022.3.2

eddiejsdev
  • 21
  • 4

2 Answers2

2

Looks like hot reload for MAUI was added to EAP2 2023.2.

You can switch to EAP builds by opening Jetbrains Toolbox, selecting "Settings" and checking "Early Access Program":

Jetbrains Toolbox

In order to use it, simply run your MAUI app in debug mode and hit CTRL+S after you make a XAML change.

widavies
  • 774
  • 2
  • 9
  • 22
1

After some more research I found out that Jetbrains has this feature on their backlog and there's still no timeframe for a release: Jetbrains Support

There is a workaround that is a bit hacky but works.

These are the steps:

  • Open your project in Visual Studio
  • Open your project in Rider (yes both Ides open)
  • Run your project in Visual Studio
  • Modify and save your files in Rider
  • Click on Visual Studio (make sure you have the current layout file open in VS or changes won't be picked up)
  • You should see your simulator update once you click on VS

Here's an example

Since I rather use Jetbrain's Ide than VS I can deal with the extra step. I even like that it only refreshes once you click VS. Sometimes I'm working on a layout on VS and hot reload is a bit aggressive and updates with every little change and I don't like that.

This works for most cases but there were a few times in which hot reload will stop working. Just open and close VS and it should work again.

eddiejsdev
  • 21
  • 4
  • Are you able to make it work with vs mac and an iOS device ? I have never been able to make it work. – Softlion Mar 29 '23 at 06:34
  • Yes, that's my environment at the moment. The gif example is from a mac environment. Did you follow the steps above? Is your mac os and rider version same as mine? – eddiejsdev Mar 29 '23 at 15:48
  • rider does not support hot reload. See their backlog. – Softlion Mar 30 '23 at 18:36
  • That is correct, as was first explained at the beginning of my answer. This is just a workaround that works for me. I recommend you re-read my post. Thanks! – eddiejsdev Mar 31 '23 at 19:29