Skip to content

Latest commit

 

History

History
50 lines (29 loc) · 2.01 KB

File metadata and controls

50 lines (29 loc) · 2.01 KB

Xamarin.Forms UI Challenge Template

Project template used to start Xamarin.Forms UI Challenges that we do here @ Lambda3. It comes with HotReload included with Cake.

You can just download the template folder and add everything to your solution, but it is recommended to use it as a template.

Using it as a template

  1. Clone this project anywhere.

  2. Download the MonoDevelop Template Creator Addin for Visual Studio for Mac
    Search for the Template Creator addin in the Gallery.

  3. After it is installed, open the Visual Studio for Mac preferences, search for Template > Custom Folders. Add the directory for the xamarin-forms-ui-challenge-template.

https://raw.githubusercontent.com/akamud/xamarin-forms-ui-challenge-template/master/preferences.png

  1. Now it should come up when creating a new solution under Multiplatform > App:

https://raw.githubusercontent.com/akamud/xamarin-forms-ui-challenge-template/master/new-solution.png

Running HotReload 🔥

The app is configured to listen on port 4290 for Android and port 4291 for iOS.

To activate HotReload for XAML pages, just run this after your iOS Simulator and Android Emulator are running. You don't have to be debugging your app, it just needs to be open, you should be able to see the changes simultaneously on iOS and Android.

Running the Cake task on Windows 💻:

./build.ps1 -Target HotReload

Running the Cake task on Mac 👩‍💻:

First make sure you have given permission to the build.sh script:

chmod +x build.sh

Then:

./build.sh -Target=HotReload

Further Improvements

  • Create an Addin to facilitate the template usage.