Native Cross-Platform in Visual Studio

DZone 's Guide to

Native Cross-Platform in Visual Studio

With Visual Studio you can build apps for Android, iOS, and Windows. Here's an overview of your options to achieve this.

· Mobile Zone ·
Free Resource


In Visual Studio 2015 you can build same apps for different devices, such as Android, iOS, and Windows. In the design process, you will have the access to many design tools in Visual Studio that will allow you to add many connected services, like Azure Mobile Services, Application Insights, and Office 365.

What is really good is that you don’t have to use specific coding language, you can use your preferred coding language such as C# and the .NET Framework, HTML, and JavaScript or C++. You can even share code, images, strings, and even the user interface in some cases.

0-Native Cross-Platform in Visual Studio

Working With HTML and JavaScript

If you don’t have Visual Studio 2015 installed yet, you will have to download and install it first. In setup process choose HTML/JavaScript (Apache Cordova) feature.

Apache Cordova is a framework which includes a plug-in model that enables the sharing of files for other types of web applications, without having to redesign or modify them.

After you create your first project and you want to run your app, you can choose between different emulators to do that or you can even run it in a browser or on a device which is connected directly to your computer. The most used emulators are Apache Ripple emulator or Visual Studio Emulator, and they are used for Android or Windows Phone.

1-HTML and JavaScript Apache Cordova Visual Studio

Working With .NET Framework / Xamarin

First, you will need to have installed Visual Studio 2015. In the installation process, you will have to choose Custom installation and select Cross Platform Mobile Development > C#/.NET, or you can simply use the Xamarin Installer.

If you already have Visual Studio 2015 installed, in Programs and Features select the same Custom option for Xamarin as above.

When you create a new project and you want to see how it works, you can use the Android emulator for Android apps, for Windows you can run apps natively or also you can use Windows Phone emulator. For iOS projects, you will start Mac emulator and you will have to connect to a networked Mac.

2-Xamarin Native Cross-Platform in Visual Studio

Working With Visual C++

Again you will have to have first installed Visual Studio 2015 and also in this case you will have to install the Visual C++ for Cross Platform Mobile Development tools. This option is available for now only for Android or Windows app, it’s not yet available for iOS apps.

You will have the chance to choose between many templates, some of them are native and can be used for both solutions (Android and Windows) and some of them targets on Windows.

When your project is ready and you want to see how it looks, you can use Visual Studio Emulator for Android or Windows.

3-Working with Visual C++ Visual Studio


The native cross platforms were a big improvement for many developers. In the old Visual Studio Build system, it was pretty hard to do open source and cross-platform tasks. This solution is really out of the box and it was the major step forward, especially when building an app for iOS. Previously you would have to be on a Mac to build iOS app, but now this is all possible with cross-platforms in Visual Studio 2015.

cross platform, visual studio

Published at DZone with permission of Mohamed Radwan , DZone MVB. See the original article here.

Opinions expressed by DZone contributors are their own.

{{ parent.title || parent.header.title}}

{{ parent.tldr }}

{{ parent.urlSource.name }}