How to set up Visual Studio for Xamarin.Android?

In the VS2015 developer preview, I saw that you can now develop Android applications in Visual Studio using Xamarin.
After hours of working on Google, I still haven't found how to set up VS2015 for Android. The only tutorial on the Xamarin official page is about how to pair your Mac with your Mac to create iOS apps.

No matter what I do, I still only have "Create my own Android applications in C #" as a project template that redirects me to the Xamarin download page.

Here is what I have done so far:

  • Uploaded and installed Xamarin
  • Rebooted computer
  • Uninstalled Xamarin and VS2015 (I had a lot of plugins)
  • Reinstalled Visual Studio 2015 (perhaps a clean install fixes the problem).
  • Reinstall Xamarin
  • Open sample code from the Xamarin page (project type not supported)

In the end, it still doesn't work, and google won't help me either.

(PS: Please do not suggest using Xamarin Studio)

+5
source share
2 answers

Apparently, the default installation does not support Visual Studio support (2010, 2012, 2013 and 2015).

Here's the solution:

  • Press the [Win + R] key and enter
  • Select "Programs and Features"
  • Select Xamarin and click "Edit"
  • In the settings, click "Next", then click "Change"
  • Here you can choose which VS support should be installed.
  • Apply the changes by clicking Next, then click Edit
+6
source

Just follow the steps here ("Create an Android Project"):

https://msdn.microsoft.com/en-us/library/dn879698(v=vs.140).aspx

In Visual Studio, create a new Blank App project (Android) and name it WeatherApp. This template can be found in Visual C # β†’ Android in the New Project dialog box. If you have not installed Xamarin to preview Visual Studio 2015, select "Build your own Android applications in the C # template" and follow the instructions to install it. In the "Open Programs and Features" control panel, select the Xamarin item, and then click the "Edit" button. In the configuration wizard for Xamarin, select the "Next" button, and then click the "Change" button. In the list of additional features to install, select the icon next to Xamarin for Visual Studio 2015, and then select "Will be installed" on the local drive. After you install Xamarin, the Blank App (Android) project template will appear in the Android templates section.

+3
source

Source: https://habr.com/ru/post/1216086/


All Articles