Just tried it and it works nicely! However for me I had to set the discovery port to 15001 and I still need to do the adb port forward. The result of this is that I can only see the XAML changes on a single droid emulator at a time.
EDIT: I am using VS2019 on Windows in case that makes a difference
@JamesLavery said:
This looks impressive but I'm afraid a major advantage of LiveXAML over HotReload is that you don't need to make any code changes to your app - just add the NuGet package.
check HotReload again ) it became much more powerful
I gave HotReload a try and I find something confusing about setting it up. (Windows 10, android emulator 8.1)
Here's what I did:
1. added the extension, nuget package in the projects
2. I am using emulator so tried with default 127.0.0.1:8000 but I did not see my xaml being updated as I changed it.
3. I've set the port to another value in Init constructor and also used the adb forward.
It worked for a little while, even if it threw some errors but I managed to get some preview, now it fails again to work. I press Connect and the icon turns green, no error shown.
Interesting that on output I can see that HOTRELOAD STARTED and I see the emulator IP addresses, but they are different from localhost.
Just tried it and it works nicely! However for me I had to set the discovery port to 15001 and I still need to do the adb port forward. The result of this is that I can only see the XAML changes on a single droid emulator at a time.
EDIT: I am using VS2019 on Windows in case that makes a difference
latest versions don't require manual port forwarding. It is achieved automatically) check Readme on my github
nice progress. it works fine on windows but i dont why i cant make it my macbook. its probably some port problem but i couldnt get it work. any clue? or how can i diagnose it? output window shows no error
Do you use real macbook?
Can you try to disable firewall ?
btw, have you enabled extension ?
yes sure physical macbook, no remote connection or vm i disabled firewall and enabled extension but it didnt help. 15000 is the port it shows that it is connected but i think that in the output i see something like port 8000. could it be the problem? i had no problem on windows. it connected without doing any set up.
Do you use real macbook?
Can you try to disable firewall ?
btw, have you enabled extension ?
yes sure physical macbook, no remote connection or vm i disabled firewall and enabled extension but it didnt help. 15000 is the port it shows that it is connected but i think that in the output i see something like port 8000. could it be the problem? i had no problem on windows. it connected without doing any set up.
well,
enable extension
run your app
try to switch to another xaml page then go back (i've fixed one such bug today..)
Do you use real macbook?
Can you try to disable firewall ?
btw, have you enabled extension ?
yes sure physical macbook, no remote connection or vm i disabled firewall and enabled extension but it didnt help. 15000 is the port it shows that it is connected but i think that in the output i see something like port 8000. could it be the problem? i had no problem on windows. it connected without doing any set up.
Ok, i did understand, but i mean about XAML only.
Does NOT work on XAML and when looks like work, then changes is too slow on screen or doesn´t change nothing.
Do I need to make any changes to my configuration?
@RicoDev said:
Ok, i did understand, but i mean about XAML only.
Does NOT work on XAML and when looks like work, then changes is too slow on screen or doesn´t change nothing.
Do I need to make any changes to my configuration?
Don't think you can do anything in case of it sometimes works for you.
Posts
Just tried it and it works nicely! However for me I had to set the discovery port to 15001 and I still need to do the adb port forward. The result of this is that I can only see the XAML changes on a single droid emulator at a time.
EDIT: I am using VS2019 on Windows in case that makes a difference
@JohnH unfortunately it's constraint
try to run one more emulator, what will happen?
Adb autoforward
https://github.com/AndreiMisiukevich/HotReload/issues/75
We added RIDER plugin
Also you needn't forward ports on android emulators anymore
https://github.com/AndreiMisiukevich/HotReload
check HotReload again ) it became much more powerful
check latest version mate )
latest versions don't require manual port forwarding. It is achieved automatically) check Readme on my github
code changes (coming soon)
That looks great! How soon is soon?
@JohnH 1 week approximately, i think
nice progress. it works fine on windows but i dont why i cant make it my macbook. its probably some port problem but i couldnt get it work. any clue? or how can i diagnose it? output window shows no error
@batmaci it's weird. HotReload for Mac is usually more stable.
Do you use real macbook?
Can you try to disable firewall ?
btw, have you enabled extension ?
yes sure physical macbook, no remote connection or vm
i disabled firewall and enabled extension but it didnt help. 15000 is the port it shows that it is connected but i think that in the output i see something like port 8000. could it be the problem? i had no problem on windows. it connected without doing any set up.
well,
enable extension
run your app
try to switch to another xaml page then go back (i've fixed one such bug today..)
Is it 1 week yet?
Looking forward to demonstrating this to the team!
i think, you will be able to do it on Monday
https://github.com/AndreiMisiukevich/HotReload/issues/102
Morning Andrei! How are you getting on?
almost finished. Have some troubles with Android. But hope i will create release tonight
@JohnH
Thanks Andrei, it works very well!
The requirement of having to add attributes and interfaces to the page, is that going to stay long term?
unfortunately it's limit of current solution
This HotReloader does not work for me.
I have visual studio 2017
This HotReloader does not work for me.
I have windows \ visual studio 2017 and work on android device
Set Extension
version 1.4.0 and enabled icon (Extension has started to listen 15000 port for IP auto discovery)
Set package nuget
1.4.19 only on PCL project
Set run on app
if DEBUG
endif
Set HotReloader.CSharpVisual on Content page
[HotReloader.CSharpVisual]
public partial class LoginPage : ContentPage
{
What did i do wrong?
@RicoDev stay on nuget version 1.4.15 and enjoy XAML reloading
seems there is an issue with windows and latest nuget version
I set for nuget version 1.4.15.
The clause [HotReloader.CSharpVisual] doest exists and i removed it.
But anyway doesnt work .
What need more?
Code reloading is not available in version 1.4.15, XAML only
Check documentation for setting up this plugin https://github.com/AndreiMisiukevich/HotReload
Ok, i did understand, but i mean about XAML only.
Does NOT work on XAML and when looks like work, then changes is too slow on screen or doesn´t change nothing.
Do I need to make any changes to my configuration?
Don't think you can do anything in case of it sometimes works for you.