Click here to Skip to main content
65,938 articles
CodeProject is changing. Read more.
Articles
(untagged)

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

0.00/5 (No votes)
8 Apr 2016 1  
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 has no explicit license attached to it but may contain usage terms in the article text or the download files themselves. If in doubt please contact the author via the discussion board below.

A list of licenses authors might use can be found here