Installing Xamarin for Visual Studio 2015 Preview Side by Side with Visual Studio 2013

Brian Lagunas / Friday, November 14, 2014

If you are a current user of Visual Studio 2013 and Xamarin, and you are wanting to start playing around with the new features in Visual Studio 2015 Preview, including the new Android emulator, then this post is for you.  I spent most of my morning trying to get this to work, so I will save you the troubles that I went through and just tell you what you need to do.  This should make your life so much easier.

First, you need to install Visual Studio 2015 Preview.  Well, that was easy.

Next you need to uninstall everything Xamarin that you have.  I know it’s a pain, but trust me, this will save you time and frustration going forward.

Now, open up Visual Studio 2015 Preview, and create a new Android project.

Visual Studio 2015 Project Templates

When the project is created, you will see a document with instructions on how to download Xamarin.

Install Xamarin

Do what the form says and click the “Download Xamarin” button.  When you click on that link it will take you to a page to download the actual Xamarin installer for Visual Studio 2015.

Download Xamarin

Once you fill out the form, click the download button of your choice and save or run the “XamarinInstaller-VS2015.exe” file.  I personally like to save them before I run them, but that’s just me.

Once you have completed the Xamarin install, launch Visual Studio 2015 again, and you will notice you have some new Project Templates.

Xamarin Project Templates for Visual Studio 2015

As you can see, I am running the Business edition of Xamarin, since I have Xamarin Forms available to me.  Hit okay, and let the magic begin.  Within a few seconds you will have a number of projects in your solution explorer that you can use to start writing cross-platform apps.

Xamarin Forms project

Let’s get that Android Emulator Working

The next thing we want to do is get that cool new Android emulator working that ships with Visual Studio 2015 Preview.  Start by making the Android project your start up project.  This will give you some new options in your Debug toolbar.  The main one being the new Android Phone emulator.

Visual Studio 2015 Preview Android Emulator debug options

Let’s go ahead and hit F5 to start debugging out Android app, and see what happens.

Visual Studio 2015 Preview Android emulator error

Well, crap!  That sucks.  Looks like Xamarin didn’t want to shake hands with Visual Studio 2015.  Or is that the other way around?  Anyways, not a big deal.  This is a known issue and has an easy fix.  Simply right-click on the Android project and click Project -> Properties -> Android Options –> and uncheck "Use Fast Deployment (debug mode only)".

Visual Studio 2015 Preview Android emulator error bug fix

Now, hit F5 one more time and let’s see what happens.

Visual Studio 2015 Preview Android emulator

SUCCESS!  We are now up and running with Visual Studio 2015 Preview and Xamarin.

I hope you find this post helpful, and maybe it even saved you some time and a little pain relief.  As always, feel free contact me on my blog, connect with me on Twitter (@brianlagunas), or leave a comment below for any questions or comments you may have.