Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Hot reload for MAUI mobile ios/android #867

Open
Gynko opened this issue Jan 18, 2024 · 13 comments
Open

Hot reload for MAUI mobile ios/android #867

Gynko opened this issue Jan 18, 2024 · 13 comments
Labels
area-project Project load, Solution Explorer enhancement New feature or request triaged The issue has been triaged
Milestone

Comments

@Gynko
Copy link

Gynko commented Jan 18, 2024

Describe the feature you'd like

As front-end engineers working on macos, we absolutely need hot reload to build our UIs for ios/android in Vscode.
With the retirement of Visual studio for mac in August 2024, we are going to lose a major development experience tool.
We just cannot develop a UI effectively without seeing changes in realtime, on several emulators at the same time.

Alternatives considered

Using Visual studio for mac until august 2024.

Environment Information

  • MacOS
  • Vscode
  • .NET MAui v0.8.3
@Gynko Gynko added the enhancement New feature or request label Jan 18, 2024
@microsoft-issue-labeler microsoft-issue-labeler bot added the area-project Project load, Solution Explorer label Jan 18, 2024
@tmeschter tmeschter added the triaged The issue has been triaged label Jan 18, 2024
@tmeschter tmeschter added this to the Apr2024 milestone Jan 18, 2024
@tmeschter tmeschter modified the milestones: Apr2024, Backlog Mar 28, 2024
@PATRICKdallat
Copy link

When is this scheduled for?

@Gynko
Copy link
Author

Gynko commented May 3, 2024

When is this scheduled for?

There does not seem to be an ETA currently, although it had been at some point added to the april roadmap.
Our group had to create a project with MAUI, and we had to use Rider to benefit from hot reload on macOS. I really hope that microsoft is going to push really hard on this feature, as it is a giant time waster.

React native has I believe instant reload on the whole codebase, and it might push us to go this road as the developer experience in incredibly benefiting from it.

With MAUI, build times are taking from 20 seconds to up to 2 minutes in some cases. Multiply this by 40 to have a day worth of work and you realize the impact on productivity.

I have no doubt that more experience devs will need less to see the results as often, but for beginners it is a bit standing in the way.

@PATRICKdallat
Copy link

When is this scheduled for?

There does not seem to be an ETA currently, although it had been at some point added to the april roadmap.
Our group had to create a project with MAUI, and we had to use Rider to benefit from hot reload on macOS. I really hope that microsoft is going to push really hard on this feature, as it is a giant time waster.

React native has I believe instant reload on the whole codebase, and it might push us to go this road as the developer experience in incredibly benefiting from it.

With MAUI, build times are taking from 20 seconds to up to 2 minutes in some cases. Multiply this by 40 to have a day worth of work and you realize the impact on productivity.

I have no doubt that more experience devs will need less to see the results as often, but for beginners it is a bit standing in the way.

I am requesting an ETA for C# Hot Reload for .NET MAUI.

Rider does not offer C# Hot Reload, only Hot Reload for XAML.

Time saved is time saved.

@Gynko
Copy link
Author

Gynko commented May 3, 2024

@SamGustinHdr
Copy link

SamGustinHdr commented May 21, 2024

@Gynko

How did you get xaml hot reload working on macos for MAUI through Rider? Is that an actual alternative to VS for mac or waiting for this to be fixed?

@Gynko
Copy link
Author

Gynko commented May 21, 2024

@SamGustinHdr Back in January when we tested several solutions for macOS, we had to go for using MAUI with Rider (JetBrains).
Their XAML hot reload actually works well, but there are some glitches on some cases.

Currently, I would recommend testing the UNO platform with VSCode, as they advertise C# and XAML hot reload.

@Gynko
Copy link
Author

Gynko commented May 21, 2024

@SamGustinHdr
At this point though I should mention that I could be even tempted to work on a windows machine, and pair it to a MAC, to enjoy using Visual Studio!
https://www.artesian.io/how-to-pair-a-mac-to-run-ios-apps-in-net-maui/

Hope this helps.

@SamGustinHdr
Copy link

I have used Rider a lot and would prefer to use it for MAUI, I've been using VS for mac for a while. I couldn't seem to get hot reload working on Rider though, would you mind sharing what version of MAUI and Rider you are using?

@rudyspano
Copy link

You should try: https://github.com/janeysprings/dotnet.meteor. It requires a nuget package...
Unfortunately it needs the interpretor (slow as you can see in Maui issues...)

@Gynko
Copy link
Author

Gynko commented May 21, 2024

I have used Rider a lot and would prefer to use it for MAUI, I've been using VS for mac for a while. I couldn't seem to get hot reload working on Rider though, would you mind sharing what version of MAUI and Rider you are using?

Oh?
I have the latest version of Rider: 2024.1.2
MAUI: 8.0.21

If I am not crazy, i believe that hot reload was enabled from version 8?

@SamGustinHdr
Copy link

You should try: https://github.com/janeysprings/dotnet.meteor. It requires a nuget package... Unfortunately it needs the interpretor (slow as you can see in Maui issues...)

I've looked into that too, I actually have an open issue there because hot reload doesn't work on a physical device...
JaneySprings/DotNet.Meteor#92

@SamGustinHdr
Copy link

I have used Rider a lot and would prefer to use it for MAUI, I've been using VS for mac for a while. I couldn't seem to get hot reload working on Rider though, would you mind sharing what version of MAUI and Rider you are using?

Oh? I have the latest version of Rider: 2024.1.2 MAUI: 8.0.21

If I am not crazy, i believe that hot reload was enabled from version 8?

Ok, I am on the same versions as you. I have never been able to get hot reload working through Rider. I should mention I was using a physical device and not a simulator.

@Gynko
Copy link
Author

Gynko commented May 21, 2024

I have used Rider a lot and would prefer to use it for MAUI, I've been using VS for mac for a while. I couldn't seem to get hot reload working on Rider though, would you mind sharing what version of MAUI and Rider you are using?

Oh? I have the latest version of Rider: 2024.1.2 MAUI: 8.0.21
If I am not crazy, i believe that hot reload was enabled from version 8?

Ok, I am on the same versions as you. I have never been able to get hot reload working through Rider. I should mention I was using a physical device and not a simulator.

Oh. yes. There are lots of problems when you try to use hot reload on a real device.. It seems to work fine as long as you don't have complex bindings on your XAML, or dynamic C# interactions.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-project Project load, Solution Explorer enhancement New feature or request triaged The issue has been triaged
Projects
None yet
Development

No branches or pull requests

5 participants