How to use Visual Studio Android Emulator on VMWare Fusion

Hello
I thought I would share a quick blog post for others who may have recently downloaded Visual Studio 2015 this week who use a Mac as their main machine & VMWare Fusion to run a copy of Windows on it.

So after downloading the new Visual Studio 2015 release, I am quite keen to do some mobile development so I was keen to look at the Visual Studio Android Emulator, but upon opening the application & starting one of the emulators that are already come pre installed, I was greeted with an error.

The error was as follows:

Visual Studio Android Emulator

So the first thing I done was hit the lovely smiley face in the main window, to give the Visual Studio team feedback on this and within 3 to 4 hours I received a reply on how to resolve this.

So what’s the solution?

The following solution is not a supported & official response from the Visual Studio Team but does allow you to use it inside of VMWare Fusion.

He is the response from Visual Studio team:

Hi Warren
Thanks for using our emulator. Our emulator is not officially supported in a nested virtualization environment (like when running under VMWare Fusion).

You can try to enable it if you do not need OpenGL support, but running in this mode is unsupported as some features are not functional in this mode.

In VMWare Fusion, under General settings, for the OS Type, you’ll need to change it from Windows 8.1 to “Hyper-V (unsupported)”. I would also suggest at least 2 processors and 4gb of ram (6gb is better depending on the Android VMs you want to run)

In Windows, you’ll need to edit the c:\program files (x86)\Microsoft XDE\10.0.10240.0\skus\android\xdesku.xml file and remove the following line from the file: GuestDisplayProvider=”VsEmulator.OpenGLGuestDisplay”

Well I have done that & managed to get the emulator to spin up and work. Hopefully this will change in the future and that this modification will no longer be needed, we will just have to wait & see.

Visual Studio Extensions for Umbraco

Hello all,
I haven’t blogged for a little while, as I have been busy with my new pet project uHangout. If you haven’t checked it out yet I highly recommend you do, as it s a weekly Google Hangout that I record and publish on YouTube with guests from the Umbraco community demoing implementations, snippets, packages or just general interviews like I did with founder Niels Hartvig & Per Ploug

So my next little lunchtime hacks has been involved in working with extending Visual Studio to make our life’s easier when working with Umbraco. After recently coming across the project SideWaffle from Sayed Hashimi and Mads Kristensen from Microsoft, I was inspired by how they have added new file templates such as an AngularJS Controller and others.

So with this idea I approached Sayed for some advice on how I can create Umbraco file templates in the same way. I was given some great pointers and I am now able to present to you the

Umbraco Community – Visual Studio Project Item Templates package for Visual Studio

You can download the extension directly inside Visual Studio from the extensions section or on the Visual Studio Gallery website.

If you are intrigued on how it all works then the full source code is available on GitHub for you to look through as well.

But it doesn’t stop there!

As I created another Visual Studio package that adds a new project template to Visual Studio. So with one click you can do File -> New Project and select the new Umbraco project template. This will install and setup Umbraco for you by fetching the latest version of Umbraco from NuGet.

Now you will be able to impress your boss as you install & setup Umbraco so quickly.
Like before this extension can be found when searching inside Visual Studio for extensions and the gallery website but I have also put the source code of is extension on GitHub as well.

I have a few more ideas for Visual Studio Extensions to make our lives easier as Umbraco Developers, but I would love to hear what you think.

Cheers,
Warren 🙂