Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Xamarin Live Player not updating in realtime

Visual studio just came out with an update that's supposed to update the code on your phone in realtime when using xamarin live player. I can get my code to appear on my phone over wifi, but it's not updating my changes. I select live player and scan the QR code. The app appears on my phone, but doesn't update the code as I type new code. How can I get it to update in realtime?

Relevant article about the feature.

https://blog.xamarin.com/whats-new-visual-studio-2017-version-15-5/

like image 502
Andy Avatar asked Dec 07 '17 20:12

Andy


2 Answers

You must not deploy the app with the play button but instead use the following key combination to start live preview:

Shift + Alt + F5

like image 74
Mazzy Avatar answered Oct 22 '22 12:10

Mazzy


Answer:

Alternatively to Mazzys answer. You can Right-Click into your Xaml and Select "Live Run". That helps in case the ShortCut "Shift + Alt + F5" is not set.

Screenshot of the context Menu showing "Live Run"

Further Information:

When starting the Live Run the currently selected view will be deployed and rendered on your device. When you switch to another ui file, the other file will be deployed and rendered.

Live Update

The live updates only seem to happen, if there is no syntax error and you save the file.

Thanks to beppe for the hint

like image 31
Tobias Theel Avatar answered Oct 22 '22 13:10

Tobias Theel