Step 1
Create a Xamarin.Forms Project with Portable Class Library (PCL).
Go to File, New Project, Visual C#, Cross -Platform, Blank App (Xamarin.Forms Portable), then Name it “HelloXamarin” and Click OK.
Note - Make sure install all the required tools i.e. Xamarin for Visual Studio and all other Android SDKs too.

Step 2
When the project is fully created or loaded then you will see something like this in Solution Explorer.

Here, we can see different projects for each platform i.e. Android, iOS, UWP (Universal Windows Platform), Windows 8.1 and Windows Phone 8.1.
And Portable is the Class library where we write all our common code base for all the platforms.
Step 3
Inside the Portable class Library Projects, in App.cs we can see default code which is ready to run.

Step 4
Now let’s run this default project. You can run the Android project in Android emulator or Windows Project in Windows devices. For iOS you need MacBook. So I am going to run in my Windows Phone Device.
Right Click on the Windows Phone 8.1 project and set it as startup project.

Step 5
Run the Project and you will see the output as following in your device. This output is same for all platforms.


Joe WilsonPosted Oct 6, 2016, 1:24 PM
Nicee.
Sonu ChaudharyPosted Jun 6, 2016, 9:58 AM
good one...
Ankit KanojiaPosted Jun 2, 2016, 6:05 AM
Nice @ne..
Ketak BhalsingPosted Jun 2, 2016, 1:31 AM
Helpful information....
Vipul MalhotraPosted Jun 1, 2016, 12:20 PM
Nice article. Could you please share some more information regarding mobile dev on VS. Which version of VS are you using and which Xamarin SDK?. Also the study material(if any)..Thanks in advance
Mohammed AshrafPosted Jun 1, 2016, 2:36 AM
Nice..
Humayun Kabir MamunPosted Jun 1, 2016, 2:29 AM
Nice...
Rupali ShindePosted Jun 1, 2016, 1:57 AM
nice, thanks for sharing
Debasis SahaPosted Jun 1, 2016, 1:37 AM
Nice share..
Vignesh ManiPosted May 31, 2016, 4:15 PM
Nice