Click here to Skip to main content
13,148,427 members (67,382 online)
Click here to Skip to main content
Add your own
alternative version

Stats

7.1K views
6 bookmarked
Posted 8 Apr 2016

Xamarin Studio (on Mac) Vs Visual Studio (Windows) for Xamarin Forms

, 8 Apr 2016
Rate this:
Please Sign up or sign in to vote.
Now than Xamarin Community is free for everyone, we don’t require a Xamarin professional license to build Xamarin applications using Visual Studio However some of [...]

Now than Xamarin Community is free for everyone, we don’t require a Xamarin professional license to build Xamarin applications using Visual Studio However some of developers who are joining the Xamarin development for first time may think that which IDE should they start with in order to develop Xamarin applications. Some people have Mac (like me ) with Windows as Virtual Machine and Some may have just Windows. This article will help you understand the usability differences between Xamarin Studio & Visual Studio (which I have felt) for making the decision clear that which IDE should you use for Xamarin Forms development.

Xamarin Studio:

  1. In Xamarin Studio Creating a new Xamarin Forms project is a 4 step process:
    1. Click on New Solution NewSolution(XS)
    2. Select the Project Type and click ‘Next’NewProject(XS)-1
    3. Enter the App name (1) , Organisation Identifier (2), select target Platform (3), Shared Project type (PCL or shared) (4) and click ‘Next’NewProject(XS)-2
    4. Enter the project name (1), solution name (2), Location to save the code (3) , Select Solution Directory creation (4), Select Version Control (if needed) (5), Select option to add Xamarin Test Cloud Project (6) and click ‘Create’NewProject(XS)-3
  2. The default template of Xamarin Forms project will create projects 3 Projects one PCL/shared, One for iOS and Android projectsSolutionExplorer(XS)
  3. Xamarin Studio automatically checks for updates of Nuget packages added to project and shows it in the solution explorer Nuget(XS)
  4. The default template of Xamarin Forms project will create ‘App’ class in the file named after the projectAppCS(XS)
  5. ‘Add new Item’ option supports 4 type of Form files for creating rest of the file types you will have to manually change the root tag (in XAML) and base class (in code behind)
    1. Forms ContentPage (Code only)
    2. Forms ContentPage (XAML)
    3. Forms ContentView (Code only)
    4. Forms ContentView (XAML)

    NewFile(XS)

  6. Code completion is perfect, even while writing code for user controls (in XAML)
  7. The namespace of the class created inside a folder will remain same (i.e. name of the project) NameSpace(XS)
  8. Debugging is better as the exact error is explained in the error break

Visual Studio:

  1. In Visual Studio Creating a new Xamarin Forms project is a 2 step process:
    1. Click on New Project NewSolution(VS)
    2. Select the Project Type, Enter the Name (1) , Location to save code (2), Solution Name (3), Select ‘Create Directory for Solution’ (by default selected) (4) Select ‘Add to source control’ (not selected by default) (5) and click OK NewProject(VS)
  2. The default template of Xamarin Forms project will create projects for all the windows platforms whose SDKs are installed and supported on the host machine (apart from iOS, Android and PCL/Shared projects) like the screen shot which below the host machine was with Windows 10 OS with SDKs for UWP,Windows 8.1 and Windows 8.1 Phone. If your Windows OS is Windows 7 without any SDK installed it will only add iOS and Android projectsSolutionExplorer(VS)
  3. Visual Studio automatically checks for updates of nuget packages added Projects but shows only in ‘Manage nuget Packages’ window Nuget(VS)
  4. The default template of Xamarin Forms project will create ‘App’ class in the file named ‘App.cs’AppCS(VS)
  5. ‘Add new Item’ option supports 3 type of Form files for creating rest of the file types you will have to manually change the root tag (in XAML) and base class (in code behind)
    1. Forms ContentPage (Code only)
    2. Forms ContentView (Code only)
    3. Forms XAML Page (It’s Forms ContentPage XAML)

    NewFile(VS)

  6. Code completion is erratic, Some times it works some times it doesn’t while writing code for user controls (in XAML)
  7. The namespace of the class created inside a folder will be like ‘ProjectName.FolderName’NameSpace(VS)
  8. Debugging is erratic as it most of the time gives generic errors

As from the above differences it’s pretty clear that it’s easier to use Xamarin Studio on Mac (if you have one) than Visual Studio on Windows if you have to create mobile app for only iOS and Android.

This is just my personal opinion based upon my usage of both the IDEs since last 1 Year, things may now change as Microsoft has acquired Xamarin :)

Hope this article helps you in taking decision, let me know if I have missed anything Happy Coding :)

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

Share

About the Author

S Ravi-Kumar-2012
Architect
India India
Hi There, I am an IT professional with 14 years of experience in architecting, designing and building IT solutions for complex business needs in form of mobile & web applications using Microsoft technologies. Currently working in an multinational company in India as Solutions Architect. The articles here are sourced from my blog : http://err2solution.com/

You may also be interested in...

Pro
Pro

Comments and Discussions

 
Question2017 Will be more appreaciated Pin
Medchalouli27-May-17 19:30
memberMedchalouli27-May-17 19:30 
GeneralMy vote of 5 Pin
witnes13-Apr-16 23:06
memberwitnes13-Apr-16 23:06 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.

Permalink | Advertise | Privacy | Terms of Use | Mobile
Web04 | 2.8.170924.2 | Last Updated 8 Apr 2016
Article Copyright 2016 by S Ravi-Kumar-2012
Everything else Copyright © CodeProject, 1999-2017
Layout: fixed | fluid