Xamarin is a company created by Mono's founder Miguel de Icaza, designed to enable developers to write iOS, Android, Mac applications, or cross-platform mobile development in C #.Brief introduction
Xamarin is a mono-based platform that currently has the following products (see: http://xamarin.com/products):
And then there's the windows phone that doesn't know where to run ...Interface Designer
For Android, whether it's Xamarin studio or Xamarin for Visual Studio, there is a designer that makes it easy to design the interface directly, see: http://docs.xamarin.com/guides/ android/user_interface/designer_overview/.
While iOS is not so lucky, Xamarin for Visual Studio does not have a designer. While Xamarin Studio has a designer provided, but currently only available in the Xamarin Studio Alpha version on iOS, it is estimated that the stability is not enough, see: http://docs.xamarin.com/guides/ios/ User_interface/designer/, had to look forward to the future to provide.
You have already installed Xamarin studio or Visual Studio that can be updated directly by switching channels: Http://docs.xamarin.com/recipes/cross-platform/ide/change_ updates_channel/, currently has stable stable version, beta version, and alpha version.Working style
The android application is compiled into IL code and then JIT-compiled (dynamically compiled) at startup, and a mono runtime is included when the program is published.
iOS, however, compiles the code directly to the arm through AOT compilation (static compilation).
See details: Http://xamarin.com/how-it-works
Xamarin provides the API documentation:
Xamarin Studio can be downloaded directly from Http://monodevelop.com/Download, and the latest stable version is now 4.0.13.
Android relies on JDK6 and Android SDK, so you need to download it first:
After installing the JDK and ANDROIDSDK, installing xamarin.android will let you choose whether to install the Visual Studio plugin.
After installing the Visual Studio plugin, set the path to the Android SDK and NDK in the menu tools->options->xamarin->android settings.
Needless to say, Eclipse is too bad to compare with IntelliJ idea, if Android Studio is the best choice for Java development, ADT doesn't have to think about it.Android Simulator and debugging
Since the emulator provided by the Android SDK is in the big slow, too bad, so have to find a replacement.
Virtual box-based genymotion is definitely the best choice and runs very smoothly, but currently only supports Android4.1.1, 4.2.2.
On the official website: http://www.genymotion.com/registered a good account, and download the installation of Genymotion, the latest version of the current 1.3.0.
You need to install virtual box on your PC before installation (currently the latest version is 4.3.2), but I found that I installed the virtual box 4.3.2 Genymotion Unable to start, so later replaced by the official recommended 4.2.12, from https:// Www.virtualbox.org/wiki/Download_Old_Builds_4_2 download.
After the installation is complete:
After the virtual machine is started, the Xamarin.android toolbar of VS will list the name of the device and you can select the device to debug the Android application on the Genymotion emulator.IOS on Mac
In Mac OS X to use Xamarin Studio, you must first install Xcode. If you have already installed Xamarin Studio, you can also install Xamarin.ios directly, and then directly develop and debug your iOS application directly from Xamarin Studio.IOS on Windows
Xamarin.ios is installed directly under Windows, and because there is no emulator under Windows, you need to connect to a Mac emulator for debugging.
Prerequisites are (see: http://docs.xamarin.com/guides/ios/getting_started/installation/mac/):
One of the most important prerequisites is that you must have an iPhone Developer program (IDP) certificate, otherwise there is no way to debug, no need to: https://developer.apple.com/programs/ ios/Application (individual developer $ per year).
After doing the above actions:
There are two modes of Xamarin.ios Visual Studio plug-in debugging:
The iphone is the default and can be changed at Build->configuration Manager's platform, otherwise the iphone will show "no Devices attached" without a connection.
For specific configuration, see: http://docs.xamarin.com/guides/ios/getting_started/introduction_to_Xamarin_iOS_for_visual_studio/.
You can then debug, some situations may mtouch not have permission to run, and you need to chmod +x/developer/monotouch/usr/bin/mtouch to give permission to run.Visual Studio 2013
The Visual Studio plug-in for Xamarin does not currently support vs 2013, so you'll need to select all 2010 and 2012 when installing Xamarin's vs plugin (as there are only 2013 left in My Computer, Installing VS2013 will also install some VS2010 shells, so the VS plugin will be installed in the VS2010 directory.
Next you need to manually copy some files (if VS2013 is installed on C drive):
The above method is from: http://blog.fire-development.com/2013/07/01/install-xamarin-in-vs-2013-preview-1/, and then by the embarrassing month transformation.
Android and iOS apps can now be developed on the VS2013.
For more information please see the official developer center:http://docs.xamarin.com/
More information in Chinese:
Terry ' s IT note:http://www.dotblogs.com.tw/taihon64/tags/xamarin/default.aspx
James ' s Tech blog:http://www.dotblogs.com.tw/jamestsai/category/9345.aspx
Donma When: http://www.dotblogs.com.tw/junegoat/Tags/Xamarin/default.aspx
Technology Research website: http://www.dotblogs.com.tw/toysboy21/category/9451.aspx
Finally, two books are recommended by the way:
Xamarin Experience: Developing ios/android apps with C #