akamud / xamarin-forms-ui-challenge-template

Visual Studio for Mac Template for Xamarin.Forms UI Challenges hosted @ Lambda3

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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.

About

Visual Studio for Mac Template for Xamarin.Forms UI Challenges hosted @ Lambda3

License:MIT License


Languages

Language:PowerShell 42.0%Language:C# 41.2%Language:Shell 16.8%